mirror of
https://github.com/Mintplex-Labs/tiktoken.git
synced 2026-07-19 13:54:01 -04:00
feat: add gpt3.5-turbo-instruct model
Signed-off-by: Prince Mendiratta <prince.mendi@gmail.com>
This commit is contained in:
@@ -247,6 +247,8 @@ export function getEncodingNameForModel(model: TiktokenModel) {
|
||||
case "text-similarity-davinci-001": {
|
||||
return "r50k_base";
|
||||
}
|
||||
case "gpt-3.5-turbo-instruct-0914":
|
||||
case "gpt-3.5-turbo-instruct":
|
||||
case "gpt-3.5-turbo-16k-0613":
|
||||
case "gpt-3.5-turbo-16k":
|
||||
case "gpt-3.5-turbo-0613":
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
"gpt-3.5-turbo-0613": "cl100k_base",
|
||||
"gpt-3.5-turbo-16k": "cl100k_base",
|
||||
"gpt-3.5-turbo-16k-0613": "cl100k_base",
|
||||
"gpt-3.5-turbo-instruct": "gpt-3.5-turbo-instruct",
|
||||
"gpt-3.5-turbo-instruct-0914": "gpt-3.5-turbo-instruct-0914",
|
||||
"gpt-4": "cl100k_base",
|
||||
"gpt-4-0314": "cl100k_base",
|
||||
"gpt-4-0613": "cl100k_base",
|
||||
|
||||
@@ -442,6 +442,8 @@ pub fn encoding_for_model(
|
||||
"gpt-3.5-turbo-0613" => Ok("cl100k_base"),
|
||||
"gpt-3.5-turbo-16k" => Ok("cl100k_base"),
|
||||
"gpt-3.5-turbo-16k-0613" => Ok("cl100k_base"),
|
||||
"gpt-3.5-turbo-instruct" => Ok("clk100k_base")
|
||||
"gpt-3.5-turbo-instruct-0914" => Ok("cl100k_base"),
|
||||
"gpt-4" => Ok("cl100k_base"),
|
||||
"gpt-4-0314" => Ok("cl100k_base"),
|
||||
"gpt-4-0613" => Ok("cl100k_base"),
|
||||
|
||||
Reference in New Issue
Block a user