mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Always enabled reasoning for models that require it (#9836)
This commit is contained in:
parent
29385e01d7
commit
ffff38be2c
1 changed files with 12 additions and 1 deletions
|
|
@ -52,7 +52,18 @@ export const getRooReasoning = ({
|
|||
settings,
|
||||
}: GetModelReasoningOptions): RooReasoningParams | undefined => {
|
||||
// Check if model supports reasoning effort
|
||||
if (!model.supportsReasoningEffort) return undefined
|
||||
if (!model.supportsReasoningEffort) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
if (model.requiredReasoningEffort) {
|
||||
// Honor the provided effort if it's valid, otherwise let the model choose.
|
||||
if (reasoningEffort && reasoningEffort !== "disable" && reasoningEffort !== "minimal") {
|
||||
return { enabled: true, effort: reasoningEffort }
|
||||
} else {
|
||||
return { enabled: true }
|
||||
}
|
||||
}
|
||||
|
||||
// Explicit off switch from settings: always send disabled for back-compat and to
|
||||
// prevent automatic reasoning when the toggle is turned off.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue