Skip to content

Commit

Permalink
Merge pull request #729 from microsoft/dayland/support-for-gpt-4o
Browse files Browse the repository at this point in the history
chore: Update tiktoken dependency to version 0.7.0 to support gpt-4o
  • Loading branch information
dayland authored May 30, 2024
2 parents 66e324c + e1fb0a9 commit e60ed3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/backend/core/modelhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"gpt-35-turbo-16k": 16385,
"gpt-3.5-turbo-16k": 16385,
"gpt-4": 8192,
"gpt-4-32k": 32768
"gpt-4-32k": 32768,
"gpt-4o": 128000
}

AOAI_2_OAI = {
"gpt-35-turbo": "gpt-3.5-turbo",
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k"
"gpt-35-turbo-16k": "gpt-3.5-turbo-16k",
"gpt-4o": "gpt-4o"
}


Expand Down
2 changes: 1 addition & 1 deletion app/backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ openai==1.17.0
azure-search-documents==11.4.0b11
azure-storage-blob==12.16.0
azure-cosmos == 4.3.1
tiktoken == 0.5.2
tiktoken == 0.7.0
fastapi == 0.109.1
fastapi-utils == 0.2.1
uvicorn == 0.23.2
Expand Down

0 comments on commit e60ed3e

Please sign in to comment.