Troubleshooting of OpenAI API: Difference between revisions

Jump to navigation Jump to search
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 to less than 15,000 characters. The exact characters limit is not listed on official document, 17,000 characters will not allowed in my experience<ref>[https://errerrors.blogspot.com/2023/01/how-to-fix-the-message-you-submitted-was-too-long-on-chatgpt.html 解決 ChatGPT 遇到「The message you submitted was too long」錯誤訊息]</ref>.
** "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" ===
Anonymous user

Navigation menu