Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

integration: fix tools_test.go for ToolCallFunctionArguments API change (#13731)

Gyungrai Wang55d0b6e8b949
diff --git a/integration/tools_test.go b/integration/tools_test.go
index e74f40413..39b3e1a91 100644
--- a/integration/tools_test.go
+++ b/integration/tools_test.go
@@ -131,7 +131,7 @@ func TestAPIToolCalling(t *testing.T) {
t.Errorf("unexpected tool called: got %q want %q", lastToolCall.Function.Name, "get_weather")
}
- if _, ok := lastToolCall.Function.Arguments["location"]; !ok {
+ if _, ok := lastToolCall.Function.Arguments.Get("location"); !ok {
t.Errorf("expected tool arguments to include 'location', got: %s", lastToolCall.Function.Arguments.String())
}
case <-ctx.Done():