We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca793aa commit 1a11b99Copy full SHA for 1a11b99
src/api/transform/reasoning.ts
@@ -57,12 +57,9 @@ export const getRooReasoning = ({
57
}
58
59
if (model.requiredReasoningEffort) {
60
- const effort: GetModelReasoningOptions["reasoningEffort"] = reasoningEffort ?? "medium"
61
- const validEfforts: ReasoningEffortExtended[] = ["low", "medium", "high"]
62
-
63
// Honor the provided effort if it's valid, otherwise let the model choose.
64
- if (validEfforts.includes(effort as ReasoningEffortExtended)) {
65
- return { enabled: true, effort: effort as ReasoningEffortExtended }
+ if (reasoningEffort && reasoningEffort !== "disable" && reasoningEffort !== "minimal") {
+ return { enabled: true, effort: reasoningEffort }
66
} else {
67
return { enabled: true }
68
0 commit comments