Skip to content

Commit b9175ff

Browse files
Add GPT-5.4 to OpenAI plugin (#1104)
1 parent 6d9b28d commit b9175ff

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

plugins/openai/src/models.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
// SPDX-License-Identifier: Apache-2.0
44

55
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'
611
| 'gpt-5'
712
| 'gpt-5-mini'
813
| 'gpt-5-nano'
@@ -210,5 +215,14 @@ export type MetaChatModels =
210215
| 'Llama-3.3-8B-Instruct';
211216

212217
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);
214228
}

0 commit comments

Comments
 (0)