From 6f23cbc68049ab9237e15035cbaeb8df78b119ae Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 18 Nov 2025 18:52:39 +0100 Subject: [PATCH] feat(plugins/compat-oai): support `gpt-5.1` Adds support for GPT 5. --- js/plugins/compat-oai/src/openai/gpt.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/plugins/compat-oai/src/openai/gpt.ts b/js/plugins/compat-oai/src/openai/gpt.ts index aa64e9469f..fc065f97d6 100644 --- a/js/plugins/compat-oai/src/openai/gpt.ts +++ b/js/plugins/compat-oai/src/openai/gpt.ts @@ -248,6 +248,10 @@ const gpt5ChatLatest = openAIModelRef({ }, }, }); +const gpt5_1 = openAIModelRef({ + name: 'openai/gpt-5.1', + info: GPT_5_MODEL_INFO, +}); export const SUPPORTED_GPT_MODELS = { 'gpt-4.5': gpt45, @@ -279,4 +283,5 @@ export const SUPPORTED_GPT_MODELS = { 'gpt-5-mini': gpt5Mini, 'gpt-5-nano': gpt5Nano, 'gpt-5-chat-latest': gpt5ChatLatest, + 'gpt-5.1': gpt5_1, } as const;