Skip to content

Commit

Permalink
Allow use of gpt-2 and gpt-3.5 in encoding_for_model (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhluca committed Feb 9, 2024
1 parent 01df436 commit 84d88dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tiktoken/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# chat
"gpt-4": "cl100k_base",
"gpt-3.5-turbo": "cl100k_base",
"gpt-3.5": "cl100k_base", # Common shorthand
"gpt-35-turbo": "cl100k_base", # Azure deployment name
# base
"davinci-002": "cl100k_base",
Expand Down Expand Up @@ -63,6 +64,7 @@
"code-search-ada-code-001": "r50k_base",
# open source
"gpt2": "gpt2",
"gpt-2": "gpt2", # Maintains consistency with gpt-4
}


Expand Down

0 comments on commit 84d88dc

Please sign in to comment.