mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
fix(gateway): normalize DeepSeek reasoning_effort 'max' to 'xhigh'
pi maps defaultThinkingLevel 'xhigh' → 'max' for deepseek-v4-pro via thinkingLevelMap, but normalizeOpenAIReasoningEffort did not recognize 'max', causing all reasoning_effort to be dropped (0% fill rate since traffic switched from claude to deepseek on May 1). Add 'max' → 'xhigh' mapping to match Claude's NormalizeClaudeOutputEffort behavior.
This commit is contained in:
@@ -7311,7 +7311,7 @@ func normalizeOpenAIReasoningEffort(raw string) string {
|
||||
return ""
|
||||
case "low", "medium", "high":
|
||||
return value
|
||||
case "xhigh", "extrahigh":
|
||||
case "xhigh", "extrahigh", "max":
|
||||
return "xhigh"
|
||||
default:
|
||||
// Only store known effort levels for now to keep UI consistent.
|
||||
|
||||
Reference in New Issue
Block a user