Remove chatml references (#1255)

This commit is contained in:
David Schnurr 2024-07-07 12:15:49 -07:00 committed by GitHub
parent 7b6e69555a
commit ffa9ad20eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -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",