Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LlamaIndexTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
LlamaIndexTS
Commits
058c275a
Unverified
Commit
058c275a
authored
10 months ago
by
Yi Ding
Committed by
GitHub
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
New azure versions (#877)
parent
6ff7576e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/core/src/llm/azure.ts
+10
-2
10 additions, 2 deletions
packages/core/src/llm/azure.ts
with
10 additions
and
2 deletions
packages/core/src/llm/azure.ts
+
10
−
2
View file @
058c275a
...
...
@@ -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
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment