Skip to content

Commit

Permalink
Add GPT-4 to model->encoding hash
Browse files Browse the repository at this point in the history
  • Loading branch information
zkry committed Jan 3, 2024
1 parent cbf5c7e commit 1dec154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tiktoken.el
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ If set to nil or an empty string, caching will be disabled."

(defconst tiktoken-model-to-encoding
(let ((ht (make-hash-table :test 'equal)))
(puthash "gpt-4" tiktoken-model-cl100k-base ht)
(puthash "gpt-3.5-turbo" tiktoken-model-cl100k-base ht)
(puthash "text-davinci-003" tiktoken-model-p50k-base ht)
(puthash "text-davinci-002" tiktoken-model-p50k-base ht)
Expand Down

0 comments on commit 1dec154

Please sign in to comment.