@devries-cameron20 / composio Mirror · read-only / commits / 81a7fae46
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

fix: replace retired claude-3-opus-20240229 with claude-opus-5-5 (#5209)

Anthropic has retired `claude-3-opus-20240229`, so `python/providers/anthropic/anthropic_demo.py` fails with a model-not-found error. This moves the demo and the Anthropic examples to `claude-opus-5-5`, which costs less than Opus 4.6 ($4/$20 per MTok vs $5/$25): - `python/providers/anthropic/anthropic_demo.py` and `python/docs/tool-router.md` (the retired id) - the JSDoc example in `ts/packages/providers/anthropic/src/index.ts` (the retired id) - every `claude-opus-4-6` example: the Python and TS Anthropic provider READMEs, `docs/content/docs/providers/anthropic.mdx`, `providers/vercel.mdx` and `approvals.mdx` The example loops already send the full `response.content` back each turn and set no sampling, thinking-budget or forced `tool_choice` parameters, so none of the request changes Opus 5.5 brings affect them. `ts/examples/anthropic/` uses `claude-sonnet-5` and is left as is. `docs/kb/semantic-index.json` is generated and will pick up the new id on its next build. Closes #5208 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

akram-composio committed Nov 3, 2026 at 14:50 UTC 81a7fae466f9bf0d02db091446da559a12c9e868
8 files changed +16 -16
docs/content/docs/approvals.mdx
+4 -4
@@ -391,7 +391,7 @@ messages = [
391 {"role": "user", "content": "Email priya@acme.com with the subject 'Q3 numbers' and say the report is ready."}
392 ]
393 response = client.messages.create(
394 - model="claude-opus-4-6", max_tokens=4096, tools=tools, messages=messages
394 + model="claude-opus-5-5", max_tokens=4096, tools=tools, messages=messages
395 )
396
397 # Run the tools Claude calls until it has a final answer
@@ -402,7 +402,7 @@ while response.stop_reason == "tool_use":
402 "content": [run_tool(block) for block in response.content if block.type == "tool_use"],
403 })
404 response = client.messages.create(
405 - model="claude-opus-4-6", max_tokens=4096, tools=tools, messages=messages
405 + model="claude-opus-5-5", max_tokens=4096, tools=tools, messages=messages
406 )
407
408 for block in response.content:
@@ -487,7 +487,7 @@ const messages: Anthropic.MessageParam[] = [
487 { role: 'user', content: "Email priya@acme.com with the subject 'Q3 numbers' and say the report is ready." },
488 ];
489 let response = await client.messages.create({
490 - model: 'claude-opus-4-6',
490 + model: 'claude-opus-5-5',
491 max_tokens: 4096,
492 tools,
493 messages,
@@ -502,7 +502,7 @@ while (response.stop_reason === 'tool_use') {
502 }
503 messages.push({ role: 'user', content: results });
504 response = await client.messages.create({
505 - model: 'claude-opus-4-6',
505 + model: 'claude-opus-5-5',
506 max_tokens: 4096,
507 tools,
508 messages,
docs/content/docs/providers/anthropic.mdx
+4 -4
@@ -77,7 +77,7 @@ messages = [
77 ]
78
79 response = client.messages.create(
80 - model="claude-opus-4-6",
80 + model="claude-opus-5-5",
81 max_tokens=4096,
82 tools=tools,
83 messages=messages,
@@ -96,7 +96,7 @@ while response.stop_reason == "tool_use":
96 ],
97 })
98 response = client.messages.create(
99 - model="claude-opus-4-6",
99 + model="claude-opus-5-5",
100 max_tokens=4096,
101 tools=tools,
102 messages=messages,
@@ -131,7 +131,7 @@ const messages: Anthropic.MessageParam[] = [
131 ];
132
133 let response = await client.messages.create({
134 - model: "claude-opus-4-6",
134 + model: "claude-opus-5-5",
135 max_tokens: 4096,
136 tools: tools,
137 messages: messages,
@@ -143,7 +143,7 @@ while (response.stop_reason === "tool_use") {
143 messages.push({ role: "assistant", content: response.content });
144 messages.push(...toolResults);
145 response = await client.messages.create({
146 - model: "claude-opus-4-6",
146 + model: "claude-opus-5-5",
147 max_tokens: 4096,
148 tools: tools,
149 messages: messages,
docs/content/docs/providers/vercel.mdx
+1 -1
@@ -46,7 +46,7 @@ const session = await composio.create("user_123");
46 const tools = await session.tools();
47
48 const { text } = await generateText({
49 - model: anthropic("claude-opus-4-6"),
49 + model: anthropic("claude-opus-5-5"),
50 tools,
51 prompt: "Send an email to john@example.com with the subject 'Hello' and body 'Hello from Composio!'",
52 stopWhen: stepCountIs(10),
python/docs/tool-router.md
+1 -1
@@ -459,7 +459,7 @@ session = composio.tool_router.create(
459 tools = session.tools()
460
461 response = client.messages.create(
462 - model="claude-3-opus-20240229",
462 + model="claude-opus-5-5",
463 max_tokens=1024,
464 messages=[{"role": "user", "content": "Find my last email from gmail"}],
465 tools=tools,
python/providers/anthropic/README.md
+2 -2
@@ -32,7 +32,7 @@ messages = [
32 ]
33
34 response = client.messages.create(
35 - model="claude-opus-4-6",
35 + model="claude-opus-5-5",
36 max_tokens=4096,
37 tools=tools,
38 messages=messages,
@@ -51,7 +51,7 @@ while response.stop_reason == "tool_use":
51 ]
52 })
53 response = client.messages.create(
54 - model="claude-opus-4-6",
54 + model="claude-opus-5-5",
55 max_tokens=4096,
56 tools=tools,
57 messages=messages,
python/providers/anthropic/anthropic_demo.py
+1 -1
@@ -16,7 +16,7 @@ tools = composio.tools.get(user_id="default", toolkits=["GITHUB"])
16
17 # Get response from the LLM
18 response = anthropic_client.messages.create(
19 - model="claude-3-opus-20240229",
19 + model="claude-opus-5-5",
20 max_tokens=1024,
21 tools=tools,
22 messages=[
ts/packages/providers/anthropic/README.md
+2 -2
@@ -37,7 +37,7 @@ const messages: Anthropic.MessageParam[] = [
37 ];
38
39 let response = await client.messages.create({
40 - model: 'claude-opus-4-6',
40 + model: 'claude-opus-5-5',
41 max_tokens: 4096,
42 tools,
43 messages,
@@ -49,7 +49,7 @@ while (response.stop_reason === 'tool_use') {
49 messages.push({ role: 'assistant', content: response.content });
50 messages.push(...toolResults);
51 response = await client.messages.create({
52 - model: 'claude-opus-4-6',
52 + model: 'claude-opus-5-5',
53 max_tokens: 4096,
54 tools,
55 messages,
ts/packages/providers/anthropic/src/index.ts
+1 -1
@@ -345,7 +345,7 @@ export class AnthropicProvider extends BaseNonAgenticProvider<
345 * const anthropic = new Anthropic({ apiKey: 'your-anthropic-api-key' });
346 *
347 * const message = await anthropic.messages.create({
348 - * model: 'claude-3-opus-20240229',
348 + * model: 'claude-opus-5-5',
349 * max_tokens: 1024,
350 * tools: provider.wrapTools(composioTools),
351 * messages: [