Skip to content

Commit 56b7477

Browse files
authored
Merge pull request #45 from idoco/fix-deprecated-model
fix: update deprecated Anthropic model
2 parents 64ba6ae + dede2bc commit 56b7477

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mcp-client-python/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async def process_query(self, query: str) -> str:
6464

6565
# Initial Claude API call
6666
response = self.anthropic.messages.create(
67-
model="claude-3-5-sonnet-20241022",
67+
model="claude-sonnet-4-0",
6868
max_tokens=1000,
6969
messages=messages,
7070
tools=available_tools
@@ -97,7 +97,7 @@ async def process_query(self, query: str) -> str:
9797

9898
# Get next response from Claude
9999
response = self.anthropic.messages.create(
100-
model="claude-3-5-sonnet-20241022",
100+
model="claude-sonnet-4-0",
101101
max_tokens=1000,
102102
messages=messages,
103103
)

mcp-client-typescript/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class MCPClient {
9292

9393
// Initial Claude API call
9494
const response = await this.anthropic.messages.create({
95-
model: "claude-3-5-sonnet-20241022",
95+
model: "claude-sonnet-4-0",
9696
max_tokens: 1000,
9797
messages,
9898
tools: this.tools,
@@ -127,7 +127,7 @@ class MCPClient {
127127

128128
// Get next response from Claude
129129
const response = await this.anthropic.messages.create({
130-
model: "claude-3-5-sonnet-20241022",
130+
model: "claude-sonnet-4-0",
131131
max_tokens: 1000,
132132
messages,
133133
});

0 commit comments

Comments
 (0)