Skip to content

Commit 7251237

Browse files
committed
fix: restore reasoning effort support for o1 series models
- Added supportsReasoningEffort: true to o1, o1-preview, and o1-mini models - This restores the ability to use reasoning effort parameters with these models - The existing code in openai-native.ts already handles reasoning effort correctly
1 parent 7c5e5a0 commit 7251237

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/types/src/providers/openai.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export const openAiNativeModels = {
168168
contextWindow: 200_000,
169169
supportsImages: true,
170170
supportsPromptCache: true,
171+
supportsReasoningEffort: true,
171172
inputPrice: 15,
172173
outputPrice: 60,
173174
cacheReadsPrice: 7.5,
@@ -177,6 +178,7 @@ export const openAiNativeModels = {
177178
contextWindow: 128_000,
178179
supportsImages: true,
179180
supportsPromptCache: true,
181+
supportsReasoningEffort: true,
180182
inputPrice: 15,
181183
outputPrice: 60,
182184
cacheReadsPrice: 7.5,
@@ -186,6 +188,7 @@ export const openAiNativeModels = {
186188
contextWindow: 128_000,
187189
supportsImages: true,
188190
supportsPromptCache: true,
191+
supportsReasoningEffort: true,
189192
inputPrice: 1.1,
190193
outputPrice: 4.4,
191194
cacheReadsPrice: 0.55,

0 commit comments

Comments
 (0)