Troubleshooting of OpenAI API: Difference between revisions
Jump to navigation
Jump to search
m
→How to fix ""This model's maximum context length is 4097 tokens"
| Line 1: | Line 1: | ||
== Troubleshooting of OpenAI API == | == Troubleshooting of OpenAI API == | ||
=== How to fix | === How to fix "This model's maximum context length is 4097 tokens" === | ||
Error message: | Error message: | ||
** "The message you submitted was too long, please reload the conversation and submit something shorter." or "This model's maximum context length is 4097 tokens, however you requested 4270 tokens (3770 in your prompt; 500 for the completion). Please reduce your prompt; or completion length." | ** "The message you submitted was too long, please reload the conversation and submit something shorter." or "This model's maximum context length is 4097 tokens, however you requested 4270 tokens (3770 in your prompt; 500 for the completion). Please reduce your prompt; or completion length." | ||