fix(translator): handle Claude thinking type "auto" like adaptive

This commit is contained in:
hkfires
2026-03-01 10:30:19 +08:00
parent 1ae994b4aa
commit b148820c35
5 changed files with 10 additions and 16 deletions

View File

@@ -230,8 +230,8 @@ func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, _ bool)
reasoningEffort = effort
}
}
case "adaptive":
// Claude adaptive means "enable with max capacity"; keep it as highest level
case "adaptive", "auto":
// Claude adaptive/auto means "enable with max capacity"; keep it as highest level
// and let ApplyThinking normalize per target model capability.
reasoningEffort = string(thinking.LevelXHigh)
case "disabled":