Skip to content

Commit 1a11b99

Browse files
committed
This seems more correct
1 parent ca793aa commit 1a11b99

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/api/transform/reasoning.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ export const getRooReasoning = ({
5757
}
5858

5959
if (model.requiredReasoningEffort) {
60-
const effort: GetModelReasoningOptions["reasoningEffort"] = reasoningEffort ?? "medium"
61-
const validEfforts: ReasoningEffortExtended[] = ["low", "medium", "high"]
62-
6360
// 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 }
61+
if (reasoningEffort && reasoningEffort !== "disable" && reasoningEffort !== "minimal") {
62+
return { enabled: true, effort: reasoningEffort }
6663
} else {
6764
return { enabled: true }
6865
}

0 commit comments

Comments
 (0)