Update Azure AI options and model map with new model configurations ()

* Update Azure AI options and model map with new model configurations

* linting

---------

Co-authored-by: Shinya Suzuki <shinya.s.825@gmail.com>
Co-authored-by: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
Shinya Suzuki 2025-04-17 01:08:40 +09:00 committed by GitHub
parent 25b3b04f59
commit 98c46c04e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions
frontend/src/components/LLMSelection/AzureAiOptions
server/utils/AiProviders

View file

@ -67,8 +67,10 @@ export default function AzureAiOptions({ settings }) {
<option value={8192}>8,192 (gpt-4)</option>
<option value={32768}>32,768 (gpt-4-32k)</option>
<option value={128000}>
128,000 (gpt-4-turbo,gpt-4o,gpt-4o-mini)
128,000 (gpt-4-turbo,gpt-4o,gpt-4o-mini,o1-mini)
</option>
<option value={200000}>200,000 (o1,o1-pro,o3-mini)</option>
<option value={1047576}>1,047,576 (gpt-4.1)</option>
</select>
</div>

View file

@ -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,
},