Skip to content

Commit

Permalink
Add new o1-2024-12-17 model
Browse files Browse the repository at this point in the history
  • Loading branch information
lmg8 committed Dec 17, 2024
1 parent b742a86 commit f40be08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export function getEncodingNameForModel(model: TiktokenModel) {
case "gpt-4o-2024-08-06":
case "gpt-4o-mini-2024-07-18":
case "gpt-4o-mini":
case "o1-2024-12-17":
case "o1-mini":
case "o1-preview":
case "o1-preview-2024-09-12":
Expand Down
1 change: 1 addition & 0 deletions tiktoken/model_to_encoding.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"gpt-4o-2024-08-06":"o200k_base",
"gpt-4o-mini-2024-07-18": "o200k_base",
"gpt-4o-mini": "o200k_base",
"o1-2024-12-17": "o200k_base",
"o1-mini": "o200k_base",
"o1-preview": "o200k_base",
"o1-preview-2024-09-12": "o200k_base",
Expand Down
1 change: 1 addition & 0 deletions wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ export type TiktokenModel =
| "gpt-4o-2024-08-06"
| "gpt-4o-mini-2024-07-18"
| "gpt-4o-mini"
| "o1-2024-12-17"
| "o1-mini"
| "o1-preview"
| "o1-preview-2024-09-12"
Expand Down

0 comments on commit f40be08

Please sign in to comment.