Troubleshooting of OpenAI API: Difference between revisions
Jump to navigation
Jump to search
→How to fix "The message you submitted was too long"
| Line 2: | Line 2: | ||
== Troubleshooting of OpenAI API == | == Troubleshooting of OpenAI API == | ||
=== How to fix "The message you submitted was too long" === | === How to fix "The message you submitted was too long" === | ||
* Error message: "The message you submitted was too long, please reload the conversation and submit something shorter." | * Error message: | ||
* Solution: Reduce the length of an input 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." | ||
* Solution: Reduce the length of an input message<ref>[https://community.openai.com/t/splitting-chunking-large-input-text-for-summarisation-greater-than-4096-tokens/18494/3 ⬛ Splitting / Chunking Large input text for Summarisation (greater than 4096 tokens....) - General API discussion - OpenAI API Community Forum]</ref>. | |||
=== How to fix "An error occurred" === | === How to fix "An error occurred" === | ||