@devries-cameron20 / composio Mirror · read-only / commits / 2f65d29c7
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 22, 19:30 UTC

fixed

Sushmithamallesh committed Oct 7, 2025 at 17:15 UTC 2f65d29c7e366c1b323a3917d6d9789d19c03001
2 files changed +15 -17
fern/pages/src/providers/openai.mdx
+13 -15
@@ -27,20 +27,19 @@ Read more about it in the [OpenAI documentation](https://platform.openai.com/doc
27 <Note>
28 Before executing any tools that require authentication (like Gmail), you'll need to:
29 1. [Create an Auth Configuration](/docs/authenticating-tools#creating-an-auth-config) for your integration
30 -2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user
31 -This ensures proper authorization and access to the external service.
30 +2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user.
31 </Note>
32
33 <CodeGroup>
35 -<SnippetCode
36 - src="fern/snippets/providers/python/openairesponses-provider.py"
37 - startLine={9}
38 - endLine={24}
34 +<SnippetCode
35 + src="fern/snippets/providers/python/openai-responses-provider.py"
36 + startLine={1}
37 + endLine={39}
38 />
39 <SnippetCode
41 - src="fern/snippets/providers/typescript/openai.ts"
42 - startLine={26}
43 - endLine={45}
40 + src="fern/snippets/providers/typescript/openairesponses.ts"
41 + startLine={1}
42 + endLine={38}
43 />
44
45 </CodeGroup>
@@ -52,20 +51,19 @@ The OpenAI Chat Provider is the default provider used by Composio SDK, but you c
51 <Note>
52 Before executing any tools that require authentication (like Gmail), you'll need to:
53 1. [Create an Auth Configuration](/docs/authenticating-tools#creating-an-auth-config) for your integration
55 -2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user
56 -This ensures proper authorization and access to the external service.
54 +2. [Set up a Connected Account](/docs/authenticating-tools#connecting-an-account) for the user.
55
56 </Note>
57 <CodeGroup>
58 <SnippetCode
59 src="fern/snippets/providers/python/openai-provider.py"
62 - startLine={9}
63 - endLine={24}
60 + startLine={1}
61 + endLine={25}
62 />
63 <SnippetCode
64 src="fern/snippets/providers/typescript/openai.ts"
67 - startLine={26}
68 - endLine={45}
65 + startLine={1}
66 + endLine={40}
67 />
68
69 </CodeGroup>
fern/snippets/providers/typescript/openairesponses.ts
+2 -2
@@ -10,11 +10,11 @@ const openai = new OpenAI({});
10
11 // Make sure to create an auth config and a connected account for the user with gmail toolkit
12 // Make sure to replace "your-user-id" with the actual user ID
13 -const userId ="sush";
13 +const userId = "your-user-id";
14
15 async function main() {
16 try {
17 - const tools = await composio.tools.get(userId, "GMAIL_SEND_EMAIL");
17 + const tools = await composio.tools.get(userId, {tools: ["GMAIL_SEND_EMAIL"]});
18
19 const response = await openai.responses.create({
20 model: "gpt-5",