mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-20 23:22:05 +08:00
fix: Remove maxTokens check from Anthropic thinking budget (#10240)
Remove maxTokens check from Anthropic thinking budget
This commit is contained in:
parent
89d5bd817b
commit
c76df7fb16
@ -312,7 +312,7 @@ export function getOpenAIReasoningParams(assistant: Assistant, model: Model): Re
|
|||||||
|
|
||||||
export function getAnthropicThinkingBudget(assistant: Assistant, model: Model): number {
|
export function getAnthropicThinkingBudget(assistant: Assistant, model: Model): number {
|
||||||
const { maxTokens, reasoning_effort: reasoningEffort } = getAssistantSettings(assistant)
|
const { maxTokens, reasoning_effort: reasoningEffort } = getAssistantSettings(assistant)
|
||||||
if (maxTokens === undefined || reasoningEffort === undefined) {
|
if (reasoningEffort === undefined) {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
const effortRatio = EFFORT_RATIO[reasoningEffort]
|
const effortRatio = EFFORT_RATIO[reasoningEffort]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user