mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
refactor(thinking): improve budget clamping and logging with provider/model context
This commit is contained in:
@@ -1467,7 +1467,7 @@ func normalizeAntigravityThinking(model string, payload []byte, isClaude bool) [
|
||||
return payload
|
||||
}
|
||||
raw := int(budget.Int())
|
||||
normalized := thinking.ClampBudget(raw, modelInfo.Thinking.Min, modelInfo.Thinking.Max)
|
||||
normalized := thinking.ClampBudget(raw, modelInfo, "antigravity")
|
||||
|
||||
if isClaude {
|
||||
effectiveMax, setDefaultMax := antigravityEffectiveMaxTokens(model, payload)
|
||||
|
||||
Reference in New Issue
Block a user