MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / normalizeDeepSeekReasoningEffort

Function normalizeDeepSeekReasoningEffort

src/api/providers/deepseek.ts:42–49  ·  view source on GitHub ↗
(reasoningEffort?: string)

Source from the content-addressed store, hash-verified

40}
41
42const 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

Callers 1

createMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected