@@ -178,7 +178,7 @@ async def process_query(self, query: str) -> str:
178178
179179 # Initial Claude API call
180180 response = self .anthropic.messages.create(
181- model = " claude-3-5- sonnet-20241022 " ,
181+ model = " claude-sonnet-4-20250514 " ,
182182 max_tokens = 1000 ,
183183 messages = messages,
184184 tools = available_tools
@@ -218,7 +218,7 @@ async def process_query(self, query: str) -> str:
218218
219219 # Get next response from Claude
220220 response = self .anthropic.messages.create(
221- model = " claude-3-5- sonnet-20241022 " ,
221+ model = " claude-sonnet-4-20250514 " ,
222222 max_tokens = 1000 ,
223223 messages = messages,
224224 tools = available_tools
@@ -647,7 +647,7 @@ async processQuery(query: string) {
647647 ];
648648
649649 const response = await this .anthropic .messages .create ({
650- model: " claude-3-5- sonnet-20241022 " ,
650+ model: " claude-sonnet-4-20250514 " ,
651651 max_tokens: 1000 ,
652652 messages ,
653653 tools: this .tools ,
@@ -676,7 +676,7 @@ async processQuery(query: string) {
676676 });
677677
678678 const response = await this .anthropic .messages .create ({
679- model: " claude-3-5- sonnet-20241022 " ,
679+ model: " claude-sonnet-4-20250514 " ,
680680 max_tokens: 1000 ,
681681 messages ,
682682 });
@@ -1230,7 +1230,7 @@ Now let's add the core functionality for processing queries and handling tool ca
12301230
12311231` ` ` kotlin
12321232private val messageParamsBuilder: MessageCreateParams.Builder = MessageCreateParams.builder()
1233- .model(Model.CLAUDE_3_5_SONNET_20241022 )
1233+ .model(Model.CLAUDE_SONNET_4_20250514 )
12341234 .maxTokens(1024)
12351235
12361236suspend fun processQuery(query: String): String {
@@ -1565,7 +1565,7 @@ using var anthropicClient = new AnthropicClient(new APIAuthentication(builder.Co
15651565var options = new ChatOptions
15661566{
15671567 MaxOutputTokens = 1000,
1568- ModelId = "claude-3-5- sonnet-20241022 ",
1568+ ModelId = "claude-sonnet-4-20250514 ",
15691569 Tools = [.. tools]
15701570};
15711571
0 commit comments