{"id":18995562,"url":"https://github.com/turbot/flowpipe-mod-openai","last_synced_at":"2026-02-14T12:02:06.179Z","repository":{"id":212778052,"uuid":"703920863","full_name":"turbot/flowpipe-mod-openai","owner":"turbot","description":"OpenAI pipeline library for the Flowpipe cloud scripting engine. Automation and workflows to connect OpenAI to the people, systems and data that matters.","archived":false,"fork":false,"pushed_at":"2025-02-11T18:48:38.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-18T21:29:12.459Z","etag":null,"topics":["automation","cloud","devops","flowpipe","flowpipe-mod","hacktoberfest","integrations","low-code","openai","openai-api","openai-chatgpt","orchestration","pipelines","security","workflow","workflow-automation","workflow-engine"],"latest_commit_sha":null,"homepage":"https://hub.flowpipe.io/mods/turbot/openai","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-12T07:22:38.000Z","updated_at":"2025-02-11T18:48:40.000Z","dependencies_parsed_at":"2025-04-18T09:19:40.883Z","dependency_job_id":"114236f1-573d-4bc3-a7a3-18b8e6c25956","html_url":"https://github.com/turbot/flowpipe-mod-openai","commit_stats":null,"previous_names":["turbot/flowpipe-mod-openai"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/turbot/flowpipe-mod-openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/flowpipe-mod-openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fflowpipe-mod-openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","cloud","devops","flowpipe","flowpipe-mod","hacktoberfest","integrations","low-code","openai","openai-api","openai-chatgpt","orchestration","pipelines","security","workflow","workflow-automation","workflow-engine"],"created_at":"2024-11-08T17:31:41.894Z","updated_at":"2026-02-14T12:02:06.149Z","avatar_url":"https://github.com/turbot.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenAI Mod for Flowpipe\n\nOpenAI pipeline library for [Flowpipe](https://flowpipe.io), enabling seamless integration of OpenAI services into your workflows.\n\n## Documentation\n\n- **[Pipelines →](https://hub.flowpipe.io/mods/turbot/openai/pipelines)**\n\n## Getting Started\n\n### Installation\n\nDownload and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:\n\n```sh\nbrew tap turbot/tap\nbrew install flowpipe\n```\n\n### Connections\n\nBy default, the following environment variables will be used for authentication:\n\n- `OPENAI_API_KEY`\n\nYou can also create `connection` resources in configuration files:\n\n```sh\nvi ~/.flowpipe/config/openai.fpc\n```\n\n```hcl\nconnection \"openai\" \"default\" {\n  api_key = \"sk-...\"\n}\n```\n\nFor more information on connections in Flowpipe, please see [Managing Connections](https://flowpipe.io/docs/run/connections).\n\n### Usage\n\n[Initialize a mod](https://flowpipe.io/docs/build/index#initializing-a-mod):\n\n```sh\nmkdir my_mod\ncd my_mod\nflowpipe mod init\n```\n\n[Install the OpenAI mod](https://flowpipe.io/docs/build/mod-dependencies#mod-dependencies) as a dependency:\n\n```sh\nflowpipe mod install github.com/turbot/flowpipe-mod-openai\n```\n\n[Use the dependency](https://flowpipe.io/docs/build/write-pipelines/index) in a pipeline step:\n\n```sh\nvi my_pipeline.fp\n```\n\n```hcl\npipeline \"my_pipeline\" {\n\n  step \"pipeline\" \"create_chat_completion\" {\n    pipeline = openai.pipeline.create_chat_completion\n    args = {\n      system_content = \"You are a helpful assistant.\"\n      user_content   = \"Hello.\"\n    }\n  }\n}\n```\n\n[Run the pipeline](https://flowpipe.io/docs/run/pipelines):\n\n```sh\nflowpipe pipeline run my_pipeline\n```\n\n### Developing\n\nClone:\n\n```sh\ngit clone https://github.com/turbot/flowpipe-mod-openai.git\ncd flowpipe-mod-openai\n```\n\nList pipelines:\n\n```sh\nflowpipe pipeline list\n```\n\nRun a pipeline:\n\n```sh\nflowpipe pipeline run create_chat_completion  --arg 'system_content=You are a helpful assistant.' --arg 'user_content=Hello!' --arg 'model=gpt-3.5-turbo' --arg 'max_tokens=50' --arg 'temperature=1'\n```\n\nTo use a specific `connection`, specify the `conn` pipeline argument:\n\n```sh\nflowpipe pipeline run create_chat_completion  --arg 'system_content=You are a helpful assistant.' --arg 'user_content=Hello!' --arg 'model=gpt-3.5-turbo' --arg 'max_tokens=50' --arg 'temperature=1' --arg 'conn=connection.openai.my_conn'\n```\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0). Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Flowpipe](https://flowpipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #flowpipe on Slack →](https://flowpipe.io/community/join)**\n\nWant to help but not sure where to start? Pick up one of the `help wanted` issues:\n\n- [Flowpipe](https://github.com/turbot/flowpipe/labels/help%20wanted)\n- [OpenAI Mod](https://github.com/turbot/flowpipe-mod-openai/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fflowpipe-mod-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fflowpipe-mod-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fflowpipe-mod-openai/lists"}