From 3640b32b6f4c2e9f004b9933570b2e052bd06ff7 Mon Sep 17 00:00:00 2001 From: Tai An Date: Thu, 23 Apr 2026 18:17:44 -0700 Subject: [PATCH 1/3] fix(anthropic): use SetFunctionCallNameString for specific tool forcing --- core/http/endpoints/anthropic/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/endpoints/anthropic/messages.go b/core/http/endpoints/anthropic/messages.go index 2f20e945ed86..62e58a4a1889 100644 --- a/core/http/endpoints/anthropic/messages.go +++ b/core/http/endpoints/anthropic/messages.go @@ -880,7 +880,7 @@ func convertAnthropicTools(input *schema.AnthropicRequest, cfg *config.ModelConf if tcType, ok := tc["type"].(string); ok && tcType == "tool" { if name, ok := tc["name"].(string); ok { // Force specific tool - cfg.SetFunctionCallString(name) + cfg.SetFunctionCallNameString(name) } } } From d1ccec7f2b2ebe86978c25ec7f637719b4d8f868 Mon Sep 17 00:00:00 2001 From: Tai An Date: Thu, 23 Apr 2026 18:17:48 -0700 Subject: [PATCH 2/3] fix(openai/realtime): use SetFunctionCallNameString for specific tool forcing --- core/http/endpoints/openai/realtime_model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/endpoints/openai/realtime_model.go b/core/http/endpoints/openai/realtime_model.go index 5c516aae3042..dd9baf1b7d59 100644 --- a/core/http/endpoints/openai/realtime_model.go +++ b/core/http/endpoints/openai/realtime_model.go @@ -168,7 +168,7 @@ func (m *wrappedModel) Predict(ctx context.Context, messages schema.Messages, im } } else if toolChoice.Function != nil { // Specific function specified - m.LLMConfig.SetFunctionCallString(toolChoice.Function.Name) + m.LLMConfig.SetFunctionCallNameString(toolChoice.Function.Name) } } From 25092de40f87c3704649074fbc38575571388505 Mon Sep 17 00:00:00 2001 From: Tai An Date: Thu, 23 Apr 2026 18:18:06 -0700 Subject: [PATCH 3/3] fix(openresponses): use SetFunctionCallNameString for specific tool forcing --- core/http/endpoints/openresponses/responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/endpoints/openresponses/responses.go b/core/http/endpoints/openresponses/responses.go index dea6ffa21649..7d051b5d7de1 100644 --- a/core/http/endpoints/openresponses/responses.go +++ b/core/http/endpoints/openresponses/responses.go @@ -773,7 +773,7 @@ func convertORToolsToFunctions(input *schema.OpenResponsesRequest, cfg *config.M case map[string]any: if tcType, ok := tc["type"].(string); ok && tcType == "function" { if name, ok := tc["name"].(string); ok { - cfg.SetFunctionCallString(name) + cfg.SetFunctionCallNameString(name) } } }