Skip to content

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

fixed

Sushmithamallesh2f65d29c7e36
diff --git a/fern/pages/src/providers/openai.mdx b/fern/pages/src/providers/openai.mdx
index 3133eb279..72a54b563 100644
--- a/fern/pages/src/providers/openai.mdx
+++ b/fern/pages/src/providers/openai.mdx
@@ -27,20 +27,19 @@ Read more about it in the [OpenAI documentation](https://platform.openai.com/doc
<Note>
Before executing any tools that require authentication (like Gmail), you'll need to:
1. [Create an Auth Configuration](/docs/authenticating-tools#creating-an-auth-config) for your integration
-2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user
-This ensures proper authorization and access to the external service.
+2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user.
</Note>
<CodeGroup>
-<SnippetCode
- src="fern/snippets/providers/python/openairesponses-provider.py"
- startLine={9}
- endLine={24}
+<SnippetCode
+ src="fern/snippets/providers/python/openai-responses-provider.py"
+ startLine={1}
+ endLine={39}
/>
<SnippetCode
- src="fern/snippets/providers/typescript/openai.ts"
- startLine={26}
- endLine={45}
+ src="fern/snippets/providers/typescript/openairesponses.ts"
+ startLine={1}
+ endLine={38}
/>
</CodeGroup>
@@ -52,20 +51,19 @@ The OpenAI Chat Provider is the default provider used by Composio SDK, but you c
<Note>
Before executing any tools that require authentication (like Gmail), you'll need to:
1. [Create an Auth Configuration](/docs/authenticating-tools#creating-an-auth-config) for your integration
-2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user
-This ensures proper authorization and access to the external service.
+2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user.
</Note>
<CodeGroup>
<SnippetCode
src="fern/snippets/providers/python/openai-provider.py"
- startLine={9}
- endLine={24}
+ startLine={1}
+ endLine={25}
/>
<SnippetCode
src="fern/snippets/providers/typescript/openai.ts"
- startLine={26}
- endLine={45}
+ startLine={1}
+ endLine={40}
/>
</CodeGroup>
diff --git a/fern/snippets/providers/typescript/openairesponses.ts b/fern/snippets/providers/typescript/openairesponses.ts
index 62bbf1849..ed310737d 100644
--- a/fern/snippets/providers/typescript/openairesponses.ts
+++ b/fern/snippets/providers/typescript/openairesponses.ts
@@ -10,11 +10,11 @@ const openai = new OpenAI({});
// Make sure to create an auth config and a connected account for the user with gmail toolkit
// Make sure to replace "your-user-id" with the actual user ID
-const userId ="sush";
+const userId = "your-user-id";
async function main() {
try {
- const tools = await composio.tools.get(userId, "GMAIL_SEND_EMAIL");
+ const tools = await composio.tools.get(userId, {tools: ["GMAIL_SEND_EMAIL"]});
const response = await openai.responses.create({
model: "gpt-5",