From 9fefc717024982dbf204a32d0a2ded6577ce6820 Mon Sep 17 00:00:00 2001 From: Shinya Suzuki Date: Thu, 17 Apr 2025 00:39:01 +0900 Subject: [PATCH 1/2] Update Azure AI options and model map with new model configurations --- .../components/LLMSelection/AzureAiOptions/index.jsx | 4 +++- server/utils/AiProviders/modelMap.js | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx index 0274175beeb..2bd2c2d5377 100644 --- a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx @@ -67,8 +67,10 @@ export default function AzureAiOptions({ settings }) { + + diff --git a/server/utils/AiProviders/modelMap.js b/server/utils/AiProviders/modelMap.js index 5482fcbd3dd..eb21d6a453c 100644 --- a/server/utils/AiProviders/modelMap.js +++ b/server/utils/AiProviders/modelMap.js @@ -89,10 +89,22 @@ const MODEL_MAP = { "gpt-4-turbo-preview": 128000, "gpt-4": 8192, "gpt-4-32k": 32000, + "gpt-4.1": 1047576, + "gpt-4.1-2025-04-14": 1047576, + "gpt-4.1-mini": 1047576, + "gpt-4.1-mini-2025-04-14": 1047576, + "gpt-4.1-nano": 1047576, + "gpt-4.1-nano-2025-04-14": 1047576, + "gpt-4.5-preview": 128000, + "gpt-4.5-preview-2025-02-27": 128000, "o1-preview": 128000, "o1-preview-2024-09-12": 128000, "o1-mini": 128000, "o1-mini-2024-09-12": 128000, + "o1": 200000, + "o1-2024-12-17": 200000, + "o1-pro": 200000, + "o1-pro-2025-03-19": 200000, "o3-mini": 200000, "o3-mini-2025-01-31": 200000, }, From 9ff99d770574927c726c4ca540d11c5afb677c4c Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Wed, 16 Apr 2025 09:08:06 -0700 Subject: [PATCH 2/2] linting --- server/utils/AiProviders/modelMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/AiProviders/modelMap.js b/server/utils/AiProviders/modelMap.js index eb21d6a453c..a80400c30b4 100644 --- a/server/utils/AiProviders/modelMap.js +++ b/server/utils/AiProviders/modelMap.js @@ -101,7 +101,7 @@ const MODEL_MAP = { "o1-preview-2024-09-12": 128000, "o1-mini": 128000, "o1-mini-2024-09-12": 128000, - "o1": 200000, + o1: 200000, "o1-2024-12-17": 200000, "o1-pro": 200000, "o1-pro-2025-03-19": 200000,