refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -39,7 +39,7 @@ func TestGeminiCLIProviderChatUsesCloudCodeEndpoint(t *testing.T) {
if got := r.Header.Get("X-Goog-Api-Client"); got != geminiCLIApiClient {
t.Fatalf("x-goog-api-client = %q", got)
}
if got := r.Header.Get("User-Agent"); got != "GeminiCLI/gemini-2.5-pro" {
if got := r.Header.Get("User-Agent"); got != geminiCLIUserAgent("gemini-2.5-pro") {
t.Fatalf("user-agent = %q", got)
}
var payload map[string]any