mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-03 12:21:20 +00:00
fix(codex): validate tier thinking values before suffixing
This commit is contained in:
@@ -294,6 +294,16 @@ export function applyThinkingConfig(
|
|||||||
continue;
|
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);
|
result[tierVar] = applyThinkingSuffixForProvider(model, tierThinkingValue, tierProvider);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user