mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-10-25 00:56:52 +08:00
feat(registry): add gemini-3.8 model variants and update test cases
- Update model identifiers to `gemini-3.8-flash-high` and `gemini-3.8-flash` in executor tests. Closes: #6602
This commit is contained in:
@@ -42,10 +42,10 @@ func TestAIStudioTranslateRequestPreservesSummaryFromOriginalRequest(t *testing.
|
||||
func TestAIStudioTranslateRequestNormalizesThinkingLevel(t *testing.T) {
|
||||
executor := NewAIStudioExecutor(&config.Config{}, "aistudio", nil)
|
||||
req := cliproxyexecutor.Request{
|
||||
Model: "gemini-3.7-flash",
|
||||
Model: "gemini-3.8-flash",
|
||||
Payload: []byte(`{
|
||||
"contents":[{"role":"user","parts":[{"text":"Human: Hi"}]}],
|
||||
"model":"gemini-3.7-flash",
|
||||
"model":"gemini-3.8-flash",
|
||||
"generationConfig":{"thinkingConfig":{"thinkingLevel":"high","includeThoughts":true}}
|
||||
}`),
|
||||
}
|
||||
|
||||
@@ -48,9 +48,9 @@ func TestAntigravityExecutorExecuteStreamTranslatesInteractionsRequest(t *testin
|
||||
"expired": time.Now().Add(time.Hour).Format(time.RFC3339),
|
||||
},
|
||||
}
|
||||
payload := []byte(`{"model":"gemini-3.1-pro-low","input":[{"type":"user_input","content":[{"type":"text","text":"hi"}]}],"tools":[{"name":"get_weather","description":"weather","type":"function","parameters":{"type":"object","properties":{"location":{"type":"string"}},"required":["location"]}}],"generation_config":{"tool_choice":"auto","thinking_level":"high","thinking_summaries":"auto"},"stream":true,"store":false}`)
|
||||
payload := []byte(`{"model":"gemini-3.8-flash-high","input":[{"type":"user_input","content":[{"type":"text","text":"hi"}]}],"tools":[{"name":"get_weather","description":"weather","type":"function","parameters":{"type":"object","properties":{"location":{"type":"string"}},"required":["location"]}}],"generation_config":{"tool_choice":"auto","thinking_level":"high","thinking_summaries":"auto"},"stream":true,"store":false}`)
|
||||
result, errExecute := exec.ExecuteStream(context.Background(), auth, cliproxyexecutor.Request{
|
||||
Model: "gemini-3.1-pro-low",
|
||||
Model: "gemini-3.8-flash-high",
|
||||
Payload: payload,
|
||||
}, cliproxyexecutor.Options{
|
||||
SourceFormat: sdktranslator.FormatInteractions,
|
||||
|
||||
Reference in New Issue
Block a user