@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 06:00 UTC

next
md 32 lines 1.86 KB
Rendered Raw
1 ---
2 type: "reference"
3 title: "OpenAI"
4 description: "Public support knowledge for OpenAI."
5 category: "auth-config"
6 visibility: "public"
7 timestamp: "2026-06-24T00:00:00Z"
8 tags:
9 - "openai"
10 ---
11 # OpenAI
12
13
14 ## `OPENAI_CREATE_IMAGE` supports `gpt-image-2` in the latest toolkit version
15
16 `gpt-image-2` has been shipped and can be used through `OPENAI_CREATE_IMAGE` on the latest toolkit version. If the model is missing, have the customer update the toolkit/tool version before retrying.
17
18 ## Use `OpenAIAgentsProvider` when wiring Composio tools into OpenAI Agents
19
20 For OpenAI Agents, initialize Composio with `OpenAIAgentsProvider`, create a session for the user, fetch tools from the session, and pass those tools into the OpenAI Agent. This is the expected provider path when using the OpenAI Agents SDK with Composio.
21
22 ## Pin auth config and connected account IDs in Tool Router sessions when a specific connection must be used
23
24 When creating a Tool Router session, pass the desired `authConfigId` and `connectedAccountId` in the session creation options. Use `authConfigs: { [toolkitSlug]: authConfigId }` and `connectedAccounts: { [toolkitSlug]: connectedAccountId }` so the session uses that specific connection instead of relying on discovery/default selection.
25
26 ## Use `beforeExecute` modifiers to add a human approval layer before tool execution
27
28 Composio SDK modifiers can be used to add a gating layer before tool execution. Implement a `beforeExecute` modifier to inspect the tool call, request approval, and only allow the execution to continue when the customer's approval logic passes.
29
30 ## Provider/schema compatibility errors often require upgrading Composio SDK packages together
31
32 When debugging provider/schema errors with OpenAI or LangChain-style integrations, upgrade both the core Composio package and the relevant provider package to their latest compatible versions before retesting.