Skip to content

Commit a9a3755

Browse files
authored
feat(plugins/compat-oai): support gpt-5.1 (#3817)
1 parent 3780569 commit a9a3755

File tree

1 file changed

+5
-0
lines changed
  • js/plugins/compat-oai/src/openai

1 file changed

+5
-0
lines changed

js/plugins/compat-oai/src/openai/gpt.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ const gpt5ChatLatest = openAIModelRef({
248248
},
249249
},
250250
});
251+
const gpt5_1 = openAIModelRef({
252+
name: 'openai/gpt-5.1',
253+
info: GPT_5_MODEL_INFO,
254+
});
251255

252256
export const SUPPORTED_GPT_MODELS = {
253257
'gpt-4.5': gpt45,
@@ -279,4 +283,5 @@ export const SUPPORTED_GPT_MODELS = {
279283
'gpt-5-mini': gpt5Mini,
280284
'gpt-5-nano': gpt5Nano,
281285
'gpt-5-chat-latest': gpt5ChatLatest,
286+
'gpt-5.1': gpt5_1,
282287
} as const;

0 commit comments

Comments
 (0)