From 71abc5d845efbdcbace71f34fd43eca23db36c0e Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 24 Nov 2025 19:13:44 +0530 Subject: [PATCH] add gpt-5.1 in add model form --- gui/src/pages/AddNewModel/configs/models.ts | 12 ++++++++++++ gui/src/pages/AddNewModel/configs/providers.ts | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/gui/src/pages/AddNewModel/configs/models.ts b/gui/src/pages/AddNewModel/configs/models.ts index c9e0c049f..3d4fe62dc 100644 --- a/gui/src/pages/AddNewModel/configs/models.ts +++ b/gui/src/pages/AddNewModel/configs/models.ts @@ -1121,6 +1121,18 @@ export const models: { [key: string]: ModelPackage } = { icon: "openai.png", isOpenSource: false, }, + gpt5_1: { + title: "GPT-5.1", + description: "OpenAI's GPT-5.1 model for advanced reasoning and chat", + params: { + model: "gpt-5.1", + contextLength: 400_000, + title: "GPT-5.1", + }, + providerOptions: ["openai"], + icon: "openai.png", + isOpenSource: false, + }, gpt5Codex: { title: "GPT-5 Codex", description: diff --git a/gui/src/pages/AddNewModel/configs/providers.ts b/gui/src/pages/AddNewModel/configs/providers.ts index f988ff805..436090ec1 100644 --- a/gui/src/pages/AddNewModel/configs/providers.ts +++ b/gui/src/pages/AddNewModel/configs/providers.ts @@ -111,13 +111,14 @@ export const providers: Partial> = { openai: { title: "OpenAI", provider: "openai", - description: "Use gpt-5, gpt-4, or any other OpenAI model", + description: "Use gpt-5.1, gpt-5, gpt-4, or any other OpenAI model", longDescription: - "Use gpt-5, gpt-4, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.", + "Use gpt-5.1, gpt-5, gpt-4, or any other OpenAI model. See [here](https://openai.com/product#made-for-developers) to obtain an API key.", icon: "openai.png", tags: [ModelProviderTags.RequiresApiKey], packages: [ models.gpt5, + models.gpt5_1, models.gpt5Codex, models.gpt4o, models.gpt4omini,