Compare commits

...

4 Commits

Author SHA1 Message Date
Yi Ding cf446e7527 merge 2024-05-23 09:25:35 -07:00
Yi Ding f17cb27381 Merge branch 'main' into new-azure-versions 2024-05-23 09:23:10 -07:00
Yi Ding bcd44ecf29 changeset 2024-05-23 09:11:42 -07:00
Yi Ding de2facde3f new azure model versions 2024-05-23 09:10:05 -07:00
+10 -2
View File
@@ -24,6 +24,10 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = {
contextWindow: 128000,
openAIModel: "gpt-4-turbo",
},
"gpt-4-turbo-2024-04-09": {
contextWindow: 128000,
openAIModel: "gpt-4-turbo",
},
"gpt-4-vision-preview": {
contextWindow: 128000,
openAIModel: "gpt-4-vision-preview",
@@ -32,6 +36,10 @@ const ALL_AZURE_OPENAI_CHAT_MODELS = {
contextWindow: 128000,
openAIModel: "gpt-4-1106-preview",
},
"gpt-4o-2024-05-13": {
contextWindow: 128000,
openAIModel: "gpt-4o-2024-05-13",
},
};
const ALL_AZURE_OPENAI_EMBEDDING_MODELS = {
@@ -63,8 +71,8 @@ const ALL_AZURE_API_VERSIONS = [
"2024-02-01",
"2024-02-15-preview",
"2024-03-01-preview",
"2024-04-01-preview", // Contains gpt-4o
"2024-05-13", // Gives 404 for gpt-4o at time of writting this
"2024-04-01-preview",
"2024-05-01-preview",
];
const DEFAULT_API_VERSION = "2023-05-15";