Skip to content

Commit 12bf42d

Browse files
committed
fix: exclude "off" from reasoning_effort in requesty provider
The OpenAI API types do not include "off" as a valid reasoning_effort value, so we need to exclude it similar to how we handle "minimal"
1 parent f429e4a commit 12bf42d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/api/providers/requesty.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ export class RequestyHandler extends BaseProvider implements SingleCompletionHan
123123
model,
124124
max_tokens,
125125
temperature,
126-
...(reasoning_effort && reasoning_effort !== "minimal" && { reasoning_effort }),
126+
...(reasoning_effort &&
127+
reasoning_effort !== "minimal" &&
128+
reasoning_effort !== "off" && { reasoning_effort }),
127129
...(thinking && { thinking }),
128130
stream: true,
129131
stream_options: { include_usage: true },

0 commit comments

Comments
 (0)