jupediaz / chatgpt-prompt-splitter

ChatGPT PROMPTs Splitter. Tool for safely process chunks of up to 15,000 characters per request
https://chatgpt-prompt-splitter.jjdiaz.dev
MIT License
528 stars 87 forks source link

Call OpenAI API directly and got this error #6

Open hcchengithub opened 1 year ago

hcchengithub commented 1 year ago

Thanks for your great idea. I tried with calling OpenAI API and sent chunks into the conversation context. Due to the token limit, I got this error:

"type": "InvalidRequestError", "message": "This model's maximum context length is 4097 tokens. However, your messages resulted in 4415 tokens. Please reduce the length of the messages."

Any suggestion?