Function
normalizeDeepSeekReasoningEffort
(reasoningEffort?: string)
Source from the content-addressed store, hash-verified
| 40 | } |
| 41 | |
| 42 | const normalizeDeepSeekReasoningEffort = (reasoningEffort?: string): "high" | "max" | undefined => { |
| 43 | if (!reasoningEffort || reasoningEffort === "disable") { |
| 44 | return undefined |
| 45 | } |
| 46 | |
| 47 | // DeepSeek currently maps low/medium to high and xhigh to max in thinking mode. |
| 48 | return reasoningEffort === "xhigh" ? "max" : "high" |
| 49 | } |
| 50 | |
| 51 | // Use the computed maxTokens from getModelParams rather than raw model metadata. |
| 52 | // V4 advertises a 384K maximum output, but the project convention caps most |
Tested by
no test coverage detected