Skip to content
Snippets Groups Projects
Unverified Commit c825a2f7 authored by Peter Goldstein's avatar Peter Goldstein Committed by GitHub
Browse files

Add gpt-4o-mini to Azure. Add 2024-06-01 API version for Azure (#1102)

parent ba058dc8
No related branches found
No related tags found
No related merge requests found
---
"llamaindex": patch
---
Add gpt-4o-mini to Azure. Add 2024-06-01 API version for Azure
...@@ -18,6 +18,7 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = { ...@@ -18,6 +18,7 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = {
openAIModel: "gpt-3.5-turbo-16k", openAIModel: "gpt-3.5-turbo-16k",
}, },
"gpt-4o": { contextWindow: 128000, openAIModel: "gpt-4o" }, "gpt-4o": { contextWindow: 128000, openAIModel: "gpt-4o" },
"gpt-4o-mini": { contextWindow: 128000, openAIModel: "gpt-4o-mini" },
"gpt-4": { contextWindow: 8192, openAIModel: "gpt-4" }, "gpt-4": { contextWindow: 8192, openAIModel: "gpt-4" },
"gpt-4-32k": { contextWindow: 32768, openAIModel: "gpt-4-32k" }, "gpt-4-32k": { contextWindow: 32768, openAIModel: "gpt-4-32k" },
"gpt-4-turbo": { "gpt-4-turbo": {
...@@ -40,6 +41,10 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = { ...@@ -40,6 +41,10 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = {
contextWindow: 128000, contextWindow: 128000,
openAIModel: "gpt-4o-2024-05-13", openAIModel: "gpt-4o-2024-05-13",
}, },
"gpt-4o-mini-2024-07-18": {
contextWindow: 128000,
openAIModel: "gpt-4o-mini-2024-07-18",
},
}; };
const ALL_AZURE_OPENAI_EMBEDDING_MODELS = { const ALL_AZURE_OPENAI_EMBEDDING_MODELS = {
...@@ -73,6 +78,7 @@ const ALL_AZURE_API_VERSIONS = [ ...@@ -73,6 +78,7 @@ const ALL_AZURE_API_VERSIONS = [
"2024-03-01-preview", "2024-03-01-preview",
"2024-04-01-preview", "2024-04-01-preview",
"2024-05-01-preview", "2024-05-01-preview",
"2024-06-01",
]; ];
const DEFAULT_API_VERSION = "2023-05-15"; const DEFAULT_API_VERSION = "2023-05-15";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment