What is number of Tokens?

Hello, everyone.
I write python code which summarize article.
But Error of “context length is wrong” still occur as below.
I understand that number of tokens is limited. but tokens length of sample article is less than 4096 (text-davinci-003). I checked this page “OpenAI API
what is wrong?

“openai.error.InvalidRequestError: This model’s maximum context length is 4097 tokens, however you requested 4581 tokens (485 in your prompt; 4096 for the completion). Please reduce your prompt; or completion length.”

The prompt + completion must be < 4096…

Hope this helps.

1 Like