feat(thinking): rename isBudgetBasedProvider to isBudgetCapableProvider and update logic for provider checks

This commit is contained in:
hkfires
2026-03-03 19:49:51 +08:00
parent c80ab8bf0d
commit 835ae178d4
2 changed files with 4 additions and 11 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ func normalizeUserDefinedConfig(config ThinkingConfig, fromFormat, toFormat stri
if config.Mode != ModeLevel {
return config
}
if !isBudgetBasedProvider(toFormat) || !isLevelBasedProvider(fromFormat) {
if !isBudgetCapableProvider(toFormat) {
return config
}
budget, ok := ConvertLevelToBudget(string(config.Level))