Skip to content

Commit 77b3be7

Browse files
committed
fix: restore reasoning effort support for o3 and o4 models
- Added supportsReasoningEffort: true to o3, o3-high, o3-low models - Added supportsReasoningEffort: true to o4-mini, o4-mini-high, o4-mini-low models - Added supportsReasoningEffort: true to o3-mini, o3-mini-high, o3-mini-low models
1 parent f229392 commit 77b3be7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/types/src/providers/openai.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const openAiNativeModels = {
7878
contextWindow: 200_000,
7979
supportsImages: true,
8080
supportsPromptCache: true,
81+
supportsReasoningEffort: true,
8182
inputPrice: 2.0,
8283
outputPrice: 8.0,
8384
cacheReadsPrice: 0.5,
@@ -88,6 +89,7 @@ export const openAiNativeModels = {
8889
contextWindow: 200_000,
8990
supportsImages: true,
9091
supportsPromptCache: true,
92+
supportsReasoningEffort: true,
9193
inputPrice: 2.0,
9294
outputPrice: 8.0,
9395
cacheReadsPrice: 0.5,
@@ -98,6 +100,7 @@ export const openAiNativeModels = {
98100
contextWindow: 200_000,
99101
supportsImages: true,
100102
supportsPromptCache: true,
103+
supportsReasoningEffort: true,
101104
inputPrice: 2.0,
102105
outputPrice: 8.0,
103106
cacheReadsPrice: 0.5,
@@ -108,6 +111,7 @@ export const openAiNativeModels = {
108111
contextWindow: 200_000,
109112
supportsImages: true,
110113
supportsPromptCache: true,
114+
supportsReasoningEffort: true,
111115
inputPrice: 1.1,
112116
outputPrice: 4.4,
113117
cacheReadsPrice: 0.275,
@@ -118,6 +122,7 @@ export const openAiNativeModels = {
118122
contextWindow: 200_000,
119123
supportsImages: true,
120124
supportsPromptCache: true,
125+
supportsReasoningEffort: true,
121126
inputPrice: 1.1,
122127
outputPrice: 4.4,
123128
cacheReadsPrice: 0.275,
@@ -128,6 +133,7 @@ export const openAiNativeModels = {
128133
contextWindow: 200_000,
129134
supportsImages: true,
130135
supportsPromptCache: true,
136+
supportsReasoningEffort: true,
131137
inputPrice: 1.1,
132138
outputPrice: 4.4,
133139
cacheReadsPrice: 0.275,
@@ -138,6 +144,7 @@ export const openAiNativeModels = {
138144
contextWindow: 200_000,
139145
supportsImages: false,
140146
supportsPromptCache: true,
147+
supportsReasoningEffort: true,
141148
inputPrice: 1.1,
142149
outputPrice: 4.4,
143150
cacheReadsPrice: 0.55,
@@ -148,6 +155,7 @@ export const openAiNativeModels = {
148155
contextWindow: 200_000,
149156
supportsImages: false,
150157
supportsPromptCache: true,
158+
supportsReasoningEffort: true,
151159
inputPrice: 1.1,
152160
outputPrice: 4.4,
153161
cacheReadsPrice: 0.55,
@@ -158,6 +166,7 @@ export const openAiNativeModels = {
158166
contextWindow: 200_000,
159167
supportsImages: false,
160168
supportsPromptCache: true,
169+
supportsReasoningEffort: true,
161170
inputPrice: 1.1,
162171
outputPrice: 4.4,
163172
cacheReadsPrice: 0.55,

0 commit comments

Comments
 (0)