chatgpt-prompt-splitter icon indicating copy to clipboard operation
chatgpt-prompt-splitter copied to clipboard

Call OpenAI API directly and got this error

Open hcchengithub opened this issue 1 year ago • 0 comments

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?

hcchengithub avatar May 19 '23 17:05 hcchengithub