Remove chatml references (#1255)
This commit is contained in:
parent
7b6e69555a
commit
ffa9ad20eb
2 changed files with 2 additions and 2 deletions
|
|
@ -465,7 +465,7 @@
|
|||
" return num_tokens_from_messages(messages, model=\"gpt-4-0613\")\n",
|
||||
" else:\n",
|
||||
" raise NotImplementedError(\n",
|
||||
" 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",
|
||||
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}.\"\"\"\n",
|
||||
" )\n",
|
||||
" num_tokens = 0\n",
|
||||
" for message in messages:\n",
|
||||
|
|
|
|||
|
|
@ -543,7 +543,7 @@
|
|||
" return num_tokens_from_messages(messages, model=\"gpt-4-0613\")\n",
|
||||
" else:\n",
|
||||
" raise NotImplementedError(\n",
|
||||
" 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",
|
||||
" f\"\"\"num_tokens_from_messages() is not implemented for model {model}.\"\"\"\n",
|
||||
" )\n",
|
||||
" num_tokens = 0\n",
|
||||
" for message in messages:\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue