This commit is contained in:
CJACK
2026-04-27 13:48:55 +08:00
parent a13293e113
commit 1602c3a43c
3 changed files with 14 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ func TestNormalizeGeminiRequestNoThinkingModelForcesThinkingOff(t *testing.T) {
req := map[string]any{
"contents": []any{
map[string]any{
"role": "user",
"role": "user",
"parts": []any{map[string]any{"text": "hello"}},
},
},

View File

@@ -83,8 +83,8 @@ func TestNormalizeOpenAIChatRequestWithConfigInterface(t *testing.T) {
func TestNormalizeOpenAIChatRequestDisablesThinkingForNoThinkingModel(t *testing.T) {
cfg := mockOpenAIConfig{wideInput: true}
req := map[string]any{
"model": "deepseek-v4-pro-nothinking",
"messages": []any{map[string]any{"role": "user", "content": "hello"}},
"model": "deepseek-v4-pro-nothinking",
"messages": []any{map[string]any{"role": "user", "content": "hello"}},
"reasoning_effort": "high",
}
out, err := promptcompat.NormalizeOpenAIChatRequest(cfg, req, "")