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.

docs: update to latest GPT and Claude model versions

Sushmitha Mallesha9a719e3511a
diff --git a/docs/content/docs/single-toolkit-mcp.mdx b/docs/content/docs/single-toolkit-mcp.mdx
index 93f12beca..df9a78813 100644
--- a/docs/content/docs/single-toolkit-mcp.mdx
+++ b/docs/content/docs/single-toolkit-mcp.mdx
@@ -168,7 +168,7 @@ mcp_server_url = "https://backend.composio.dev/v3/mcp/YOUR_SERVER_ID?user_id=YOU
mcp_headers = {"x-api-key": "YOUR_COMPOSIO_API_KEY"}
response = client.beta.messages.create(
- model="claude-sonnet-4-5",
+ model="claude-sonnet-4-6",
max_tokens=1000,
messages=[{"role": "user", "content": "What are my latest emails?"}],
mcp_servers=[{
@@ -204,7 +204,7 @@ const agent = new Agent({
id: "assistant",
name: "Assistant",
instructions: "You are a helpful assistant that can read and manage emails.",
- model: openai("gpt-4-turbo"),
+ model: openai("gpt-5.4"),
tools: await client.getTools()
});
diff --git a/docs/content/docs/tools-direct/executing-tools.mdx b/docs/content/docs/tools-direct/executing-tools.mdx
index 7411a6c52..aa130aa2f 100644
--- a/docs/content/docs/tools-direct/executing-tools.mdx
+++ b/docs/content/docs/tools-direct/executing-tools.mdx
@@ -46,7 +46,7 @@ tools = composio.tools.get(
# Ask the LLM to check calendar
result = openai.chat.completions.create(
- model="gpt-4o-mini",
+ model="gpt-5.4",
tools=tools,
messages=[
{"role": "system", "content": "You are a helpful assistant."},
diff --git a/docs/content/docs/tools-direct/modify-tool-behavior/after-execution-modifiers.mdx b/docs/content/docs/tools-direct/modify-tool-behavior/after-execution-modifiers.mdx
index 267897d3a..8caa20cd6 100644
--- a/docs/content/docs/tools-direct/modify-tool-behavior/after-execution-modifiers.mdx
+++ b/docs/content/docs/tools-direct/modify-tool-behavior/after-execution-modifiers.mdx
@@ -49,7 +49,7 @@ tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_USER")
# Get response from the LLM
response = openai_client.chat.completions.create(
- model="gpt-4o-mini",
+ model="gpt-5.4",
tools=tools,
messages=messages,
)
@@ -70,7 +70,7 @@ print(result)
```typescript
// @noErrors
const response = await openai.chat.completions.create({
- model: "gpt-4o-mini",
+ model: "gpt-5.4",
messages,
tools,
tool_choice: "auto",
diff --git a/docs/content/docs/tools-direct/modify-tool-behavior/before-execution-modifiers.mdx b/docs/content/docs/tools-direct/modify-tool-behavior/before-execution-modifiers.mdx
index c9c8e3f05..ae9030b44 100644
--- a/docs/content/docs/tools-direct/modify-tool-behavior/before-execution-modifiers.mdx
+++ b/docs/content/docs/tools-direct/modify-tool-behavior/before-execution-modifiers.mdx
@@ -51,7 +51,7 @@ tools = composio.tools.get(user_id=user_id, slug="HACKERNEWS_GET_LATEST_POSTS")
# Get response from the LLM
response = openai_client.chat.completions.create(
- model="gpt-4o-mini",
+ model="gpt-5.4",
tools=tools,
messages=[{"role": "user", "content": "Fetch latest posts from hackernews"}],
)
@@ -72,7 +72,7 @@ print(result)
```typescript
// @noErrors
const response = await openai.chat.completions.create({
- model: "gpt-4o-mini",
+ model: "gpt-5.4",
messages,
tools,
tool_choice: "auto",
diff --git a/docs/content/docs/tools-direct/modify-tool-behavior/schema-modifiers.mdx b/docs/content/docs/tools-direct/modify-tool-behavior/schema-modifiers.mdx
index 06c14fbb8..67e5729fb 100644
--- a/docs/content/docs/tools-direct/modify-tool-behavior/schema-modifiers.mdx
+++ b/docs/content/docs/tools-direct/modify-tool-behavior/schema-modifiers.mdx
@@ -121,7 +121,7 @@ tools = composio.tools.get(
# Get response from the LLM
response = openai_client.chat.completions.create(
- model="gpt-4o-mini",
+ model="gpt-5.4",
tools=tools,
messages=[
{"role": "system", "content": "You are a helpful assistant."},
@@ -170,7 +170,7 @@ const tools = await composio.tools.get(
console.log(JSON.stringify(tools, null, 2));
const response = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages: [
{
role: 'system',
diff --git a/ts/examples/anthropic/src/streaming.ts b/ts/examples/anthropic/src/streaming.ts
index 58fb2cd6a..750e22107 100644
--- a/ts/examples/anthropic/src/streaming.ts
+++ b/ts/examples/anthropic/src/streaming.ts
@@ -31,7 +31,7 @@ async function main() {
console.log('πŸ”„ Creating message with Anthropic...');
const stream = await anthropic.messages
.stream({
- model: 'claude-3-5-sonnet-latest',
+ model: 'claude-sonnet-4-6',
max_tokens: 1024,
messages: [
{
diff --git a/ts/examples/cloudflare-wrangler/src/index.ts b/ts/examples/cloudflare-wrangler/src/index.ts
index 191449b34..a5e1a6bdd 100644
--- a/ts/examples/cloudflare-wrangler/src/index.ts
+++ b/ts/examples/cloudflare-wrangler/src/index.ts
@@ -133,7 +133,7 @@ app.post('/hackernews-chat', async (c) => {
];
const response = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages: [{ role: 'user', content: message }],
tools,
});
@@ -150,7 +150,7 @@ app.post('/hackernews-chat', async (c) => {
if (toolResponses.length > 0) {
// create the final response
const finalResponse = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages,
});
diff --git a/ts/examples/connected-accounts/src/magic-flow-demo.ts b/ts/examples/connected-accounts/src/magic-flow-demo.ts
index 03f434fe2..4a987d6b3 100644
--- a/ts/examples/connected-accounts/src/magic-flow-demo.ts
+++ b/ts/examples/connected-accounts/src/magic-flow-demo.ts
@@ -44,7 +44,7 @@ const messages: OpenAI.ChatCompletionMessageParam[] = [
];
const response = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages,
tools: tools,
tool_choice: 'auto',
diff --git a/ts/examples/langchain/src/index.ts b/ts/examples/langchain/src/index.ts
index 0f43c52ea..e73c9b606 100644
--- a/ts/examples/langchain/src/index.ts
+++ b/ts/examples/langchain/src/index.ts
@@ -19,7 +19,7 @@ const toolNode = new ToolNode(tools);
// Create a model and give it access to the tools
const model = new ChatOpenAI({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
temperature: 0,
}).bindTools(tools);
diff --git a/ts/examples/llamaindex/src/index.ts b/ts/examples/llamaindex/src/index.ts
index d9e8136c9..401294496 100644
--- a/ts/examples/llamaindex/src/index.ts
+++ b/ts/examples/llamaindex/src/index.ts
@@ -56,7 +56,7 @@ async function main() {
const hackernewsAgent = agent({
name: 'Hackernews Agent',
description: 'A helpful hackernews assistant',
- llm: openai({ model: 'gpt-4o-mini' }),
+ llm: openai({ model: 'gpt-5.4' }),
systemPrompt:
'You are a helpful hackernews assistant that helps users with their queries related to hackernews',
tools,
diff --git a/ts/examples/mastra/src/experimental.mcp.ts b/ts/examples/mastra/src/experimental.mcp.ts
index 2404d6b91..fa4dc22b4 100644
--- a/ts/examples/mastra/src/experimental.mcp.ts
+++ b/ts/examples/mastra/src/experimental.mcp.ts
@@ -51,7 +51,7 @@ const agent = new MastraAgent({
When fetching emails, provide a clear summary of the results including sender, subject, and date.
Be concise and provide actionable information based on the email content.
`,
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools,
});
diff --git a/ts/examples/mastra/src/experimental.tool-router.ts b/ts/examples/mastra/src/experimental.tool-router.ts
index 1412a0c0f..49bcb6162 100644
--- a/ts/examples/mastra/src/experimental.tool-router.ts
+++ b/ts/examples/mastra/src/experimental.tool-router.ts
@@ -41,7 +41,7 @@ const agent = new MastraAgent({
When fetching emails, provide a clear summary of the results including sender, subject, and date.
Be concise and provide actionable information based on the email content.
`,
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools,
});
diff --git a/ts/examples/mastra/src/index.ts b/ts/examples/mastra/src/index.ts
index 7e207d19e..a0d7c158e 100644
--- a/ts/examples/mastra/src/index.ts
+++ b/ts/examples/mastra/src/index.ts
@@ -55,7 +55,7 @@ const hackernewsAgent = new Agent({
name: 'Weather Agent',
instructions:
'You are a helpful assistant that can use the Hackernews API to get user information.',
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools: tools,
});
diff --git a/ts/examples/mastra/src/mcp.ts b/ts/examples/mastra/src/mcp.ts
index 47db38e4f..aca71ebb0 100644
--- a/ts/examples/mastra/src/mcp.ts
+++ b/ts/examples/mastra/src/mcp.ts
@@ -105,7 +105,7 @@ const gmailAgent = new Agent({
When fetching emails, provide a clear summary of the results including sender, subject, and date.
Be concise and provide actionable information based on the email content.
`,
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools: wrapTools(serverInstance, tools),
});
diff --git a/ts/examples/mcp/src/index.ts b/ts/examples/mcp/src/index.ts
index ac0d559a3..c2a0ba754 100644
--- a/ts/examples/mcp/src/index.ts
+++ b/ts/examples/mcp/src/index.ts
@@ -42,7 +42,7 @@ const tools = await mcpClient.tools();
// 6. Pass tools to Vercel-specific Agent.
const stream = streamText({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
messages: [
{
role: 'user',
diff --git a/ts/examples/openai/src/agents-api/experiment.mcp.ts b/ts/examples/openai/src/agents-api/experiment.mcp.ts
index 827ecdfea..e3ac05284 100644
--- a/ts/examples/openai/src/agents-api/experiment.mcp.ts
+++ b/ts/examples/openai/src/agents-api/experiment.mcp.ts
@@ -45,7 +45,7 @@ const agent = new OpenAIAgent({
When fetching emails, provide a clear summary of the results including sender, subject, and date.
Be concise and provide actionable information based on the email content.
`,
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
tools: tools,
});
diff --git a/ts/examples/openai/src/agents-api/experiment.tool-router.ts b/ts/examples/openai/src/agents-api/experiment.tool-router.ts
index 5babc3948..2d7dde07e 100644
--- a/ts/examples/openai/src/agents-api/experiment.tool-router.ts
+++ b/ts/examples/openai/src/agents-api/experiment.tool-router.ts
@@ -40,7 +40,7 @@ const agent = new OpenAIAgent({
When fetching emails, provide a clear summary of the results including sender, subject, and date.
Be concise and provide actionable information based on the email content.
`,
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
tools: tools,
});
diff --git a/ts/examples/openai/src/chat-completions.ts b/ts/examples/openai/src/chat-completions.ts
index bffaf7f18..292ff9ec3 100644
--- a/ts/examples/openai/src/chat-completions.ts
+++ b/ts/examples/openai/src/chat-completions.ts
@@ -32,7 +32,7 @@ async function main() {
console.log(`πŸ”„ Sending query to OpenAI: "${query}"`);
const response = await openai.chat.completions.create({
- model: 'gpt-4o',
+ model: 'gpt-5.4',
messages: [
{
role: 'system',
@@ -64,7 +64,7 @@ async function main() {
console.log('βœ… Tool execution result:', JSON.parse(toolResult));
const finalResponse = await openai.chat.completions.create({
- model: 'gpt-4o',
+ model: 'gpt-5.4',
messages: [
{
role: 'system',
diff --git a/ts/examples/openai/src/index.ts b/ts/examples/openai/src/index.ts
index a60d5088b..8d7624c4f 100644
--- a/ts/examples/openai/src/index.ts
+++ b/ts/examples/openai/src/index.ts
@@ -35,7 +35,7 @@ const messages: OpenAI.ChatCompletionMessageParam[] = [
* Create a chat completion
*/
const response = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages,
tools: tools,
tool_choice: 'auto',
diff --git a/ts/examples/openai/src/responses-api/experiment.mcp.ts b/ts/examples/openai/src/responses-api/experiment.mcp.ts
index a4ca8307b..97d408d31 100644
--- a/ts/examples/openai/src/responses-api/experiment.mcp.ts
+++ b/ts/examples/openai/src/responses-api/experiment.mcp.ts
@@ -41,7 +41,7 @@ console.log({ tools });
// 4. Pass tools to OpenAI-specific Agent.
const openai = new OpenAI();
const emailResponse = await openai.responses.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
instructions: `
You are a helpful Gmail assistant that fetches and summarizes emails.
When fetching emails, provide a clear summary of the results including sender, subject, and date.
diff --git a/ts/examples/openai/src/responses-api/index.ts b/ts/examples/openai/src/responses-api/index.ts
index 89bc03e4e..80cca553d 100644
--- a/ts/examples/openai/src/responses-api/index.ts
+++ b/ts/examples/openai/src/responses-api/index.ts
@@ -13,7 +13,7 @@ console.log(`βœ… Tools fetched from composio`);
console.log(`πŸ”„ Generating response from OpenAI...`);
const initialResponse = await openai.responses.create({
- model: 'gpt-4.1',
+ model: 'gpt-5.4',
input: 'Tell me about the user `pg` in hackernews',
tools,
});
@@ -40,7 +40,7 @@ const modelInputs = await composio.provider.handleResponse(
console.log(`πŸ”„ Submitting tool outputs to OpenAI...`);
console.log(JSON.stringify(modelInputs, null, 2));
const finalResponse = await openai.responses.create({
- model: 'gpt-4.1',
+ model: 'gpt-5.4',
input: [...initialResponse.output, ...modelInputs],
tools,
});
diff --git a/ts/examples/openai/src/tools.ts b/ts/examples/openai/src/tools.ts
index d53f0536c..6b65c4768 100644
--- a/ts/examples/openai/src/tools.ts
+++ b/ts/examples/openai/src/tools.ts
@@ -16,7 +16,7 @@ const tools = await composio.tools.get('default', {
const query = 'What is the user "pg"';
const response = await openai.chat.completions.create({
- model: 'gpt-4o',
+ model: 'gpt-5.4',
messages: [
{
role: 'system',
diff --git a/ts/examples/tool-router/src/claude-agent-sdk.ts b/ts/examples/tool-router/src/claude-agent-sdk.ts
index bf7739150..150a7893c 100644
--- a/ts/examples/tool-router/src/claude-agent-sdk.ts
+++ b/ts/examples/tool-router/src/claude-agent-sdk.ts
@@ -9,7 +9,7 @@ const session = await composio.create('user_123', { toolkits: ['gmail'] });
const stream = await query({
prompt: 'Use composio tools to fetch my last email from gmail',
options: {
- model: 'claude-sonnet-4-5-20250929',
+ model: 'claude-sonnet-4-6',
permissionMode: "bypassPermissions",
mcpServers: {
composio: {
diff --git a/ts/examples/tool-router/src/index.ts b/ts/examples/tool-router/src/index.ts
index df109c4b2..56282972e 100644
--- a/ts/examples/tool-router/src/index.ts
+++ b/ts/examples/tool-router/src/index.ts
@@ -13,7 +13,7 @@ const session = await composio.create('user_123', { toolkits: ['gmail'] });
const tools = await session.tools(modifiers);
const stream = await streamText({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
prompt: 'Find my last email from gmail?',
stopWhen: stepCountIs(10),
tools,
diff --git a/ts/examples/tool-router/src/langchain.ts b/ts/examples/tool-router/src/langchain.ts
index 0fed09909..06f53a2d6 100644
--- a/ts/examples/tool-router/src/langchain.ts
+++ b/ts/examples/tool-router/src/langchain.ts
@@ -8,7 +8,7 @@ const composio = new Composio({
});
const llm = new ChatOpenAI({
- model: "gpt-4o",
+ model: "gpt-5.4",
})
async function main() {
diff --git a/ts/examples/tool-router/src/mcp.ts b/ts/examples/tool-router/src/mcp.ts
index ea7493ddd..b42e2a0e5 100644
--- a/ts/examples/tool-router/src/mcp.ts
+++ b/ts/examples/tool-router/src/mcp.ts
@@ -31,7 +31,7 @@ mcpProgress.succeed(`${Object.values(tools).length} tools retrieved from MCP`);
console.log(`πŸ€– Waiting for agent response...`);
const stream = await streamText({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
prompt: 'Summarize my latest received email from gmail.',
stopWhen: stepCountIs(10),
onStepFinish: (step) => {
diff --git a/ts/examples/tools/src/ai.ts b/ts/examples/tools/src/ai.ts
index 726683e51..f8ae342d1 100644
--- a/ts/examples/tools/src/ai.ts
+++ b/ts/examples/tools/src/ai.ts
@@ -41,7 +41,7 @@ const messages: OpenAI.ChatCompletionMessageParam[] = [
*/
console.log('πŸ”„ Creating chat completion...');
const response = await openai.chat.completions.create({
- model: 'gpt-4o-mini',
+ model: 'gpt-5.4',
messages,
tools: tools,
tool_choice: 'auto',
diff --git a/ts/examples/vercel/src/ai.ts b/ts/examples/vercel/src/ai.ts
index 0ac6c3a90..e55e182a9 100644
--- a/ts/examples/vercel/src/ai.ts
+++ b/ts/examples/vercel/src/ai.ts
@@ -35,7 +35,7 @@ async function run() {
];
const { text } = await generateText({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools,
messages,
stopWhen: stepCountIs(5),
diff --git a/ts/examples/vercel/src/stream.ts b/ts/examples/vercel/src/stream.ts
index db56c27a2..13361a375 100644
--- a/ts/examples/vercel/src/stream.ts
+++ b/ts/examples/vercel/src/stream.ts
@@ -13,7 +13,7 @@ const composio = new Composio({
const tools = await composio.tools.get('test-user-id', 'HACKERNEWS_GET_FRONTPAGE');
const stream = await streamText({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
tools,
prompt: 'Summarize the front page of HackerNews',
stopWhen: stepCountIs(5),
diff --git a/ts/examples/vercel/src/tool-loop-agent.ts b/ts/examples/vercel/src/tool-loop-agent.ts
index b61eec037..afe517b28 100644
--- a/ts/examples/vercel/src/tool-loop-agent.ts
+++ b/ts/examples/vercel/src/tool-loop-agent.ts
@@ -32,7 +32,7 @@ console.log(`βœ… Tools loaded: ${Object.keys(tools).join(', ')}`);
// 3. Create a ToolLoopAgent with Composio tools
const hackerNewsAgent = new ToolLoopAgent({
- model: openai('gpt-4o-mini'),
+ model: openai('gpt-5.4'),
instructions: `You are a helpful assistant that can look up information about Hacker News users.
When asked about a user, use the available tools to fetch their profile information.
Provide a concise summary of the user's profile including their karma, about section, and any other relevant details.`,