mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 02:11:28 +00:00
fix(codex): validate tier thinking values before suffixing
This commit is contained in:
@@ -294,6 +294,16 @@ export function applyThinkingConfig(
|
||||
continue;
|
||||
}
|
||||
|
||||
// Validate/clamp tier thinking against this specific tier model capabilities.
|
||||
const tierValidation = validateThinking(tierProvider, normalizedTierModel, tierThinkingValue);
|
||||
if (tierValidation.warning && shouldShowWarnings(thinkingConfig)) {
|
||||
console.warn(warn(tierValidation.warning));
|
||||
}
|
||||
tierThinkingValue = tierValidation.value;
|
||||
if (isThinkingOffValue(tierThinkingValue)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result[tierVar] = applyThinkingSuffixForProvider(model, tierThinkingValue, tierProvider);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user