From 8c9f6c5a6c7a4387248a6b57aafee16985299722 Mon Sep 17 00:00:00 2001 From: tong3jie <14191774+tong3jie@users.noreply.github.com> Date: Mon, 23 Mar 2026 16:46:37 +0800 Subject: [PATCH] fix(provider): rename test for clarity and update model version in test case --- pkg/providers/openai_compat/provider_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/providers/openai_compat/provider_test.go b/pkg/providers/openai_compat/provider_test.go index 90a843790..5258a0c91 100644 --- a/pkg/providers/openai_compat/provider_test.go +++ b/pkg/providers/openai_compat/provider_test.go @@ -18,7 +18,7 @@ import ( "github.com/sipeed/picoclaw/pkg/providers/protocoltypes" ) -func TestProviderChat_MaxTokensFieldNull(t *testing.T) { +func TestProviderChat_EmptyMaxTokensFieldUsesDefault(t *testing.T) { var requestBody map[string]any server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { @@ -48,7 +48,7 @@ func TestProviderChat_MaxTokensFieldNull(t *testing.T) { t.Context(), []Message{{Role: "user", Content: "hi"}}, nil, - "glm-4.7", + "gemini-3.0", map[string]any{"max_tokens": 1234}, ) if err != nil {