feat(thinking): support zero as a valid thinking budget for capable models

This commit is contained in:
hkfires
2026-01-15 15:41:10 +08:00
parent 5c40a2db21
commit ff4ff6bc2f
2 changed files with 175 additions and 3 deletions

View File

@@ -54,6 +54,9 @@ func ClampBudget(value int, modelInfo *registry.ModelInfo, provider string) int
}
if value < min {
if value == 0 && support.ZeroAllowed {
return 0
}
logClamp(provider, model, value, min, min, max)
return min
}