There was an error while loading. Please reload this page.
1 parent 6d9b28d commit b9175ffCopy full SHA for b9175ff
1 file changed
plugins/openai/src/models.ts
@@ -3,6 +3,11 @@
3
// SPDX-License-Identifier: Apache-2.0
4
5
export type ChatModels =
6
+ | 'gpt-5.4'
7
+ | 'gpt-5.2'
8
+ | 'gpt-5.2-chat-latest'
9
+ | 'gpt-5.1'
10
+ | 'gpt-5.1-chat-latest'
11
| 'gpt-5'
12
| 'gpt-5-mini'
13
| 'gpt-5-nano'
@@ -210,5 +215,14 @@ export type MetaChatModels =
210
215
| 'Llama-3.3-8B-Instruct';
211
216
212
217
export function supportsReasoningEffort(model: ChatModels | string): boolean {
213
- return model === 'gpt-5' || model === 'gpt-5-mini' || model === 'gpt-5-nano';
218
+ return [
219
+ 'gpt-5.4',
220
+ 'gpt-5.2',
221
+ 'gpt-5.2-chat-latest',
222
+ 'gpt-5.1',
223
+ 'gpt-5.1-chat-latest',
224
+ 'gpt-5',
225
+ 'gpt-5-mini',
226
+ 'gpt-5-nano',
227
+ ].includes(model);
214
228
}
0 commit comments