Skip to content

Commit 1ecd162

Browse files
schnerdcharuj
authored andcommitted
Remove chatml references (#1255)
1 parent 1c38efa commit 1ecd162

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/How_to_count_tokens_with_tiktoken.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
" return num_tokens_from_messages(messages, model=\"gpt-4-0613\")\n",
466466
" else:\n",
467467
" raise NotImplementedError(\n",
468-
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}. See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.\"\"\"\n",
468+
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}.\"\"\"\n",
469469
" )\n",
470470
" num_tokens = 0\n",
471471
" for message in messages:\n",

examples/How_to_format_inputs_to_ChatGPT_models.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@
543543
" return num_tokens_from_messages(messages, model=\"gpt-4-0613\")\n",
544544
" else:\n",
545545
" raise NotImplementedError(\n",
546-
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}. See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens.\"\"\"\n",
546+
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}.\"\"\"\n",
547547
" )\n",
548548
" num_tokens = 0\n",
549549
" for message in messages:\n",

0 commit comments

Comments
 (0)