openai-cookbook
openai-cookbook copied to clipboard
nextjs-with-flask-server: Error when asking a question ( TypeError: Cannot read properties of undefined (reading 'toLowerCase'))
Uploaded two txts and asked a simple question and got this.
I am getting a similar error
You are most likely hitting the maximum context length. https://platform.openai.com/docs/models/gpt-3
This model's maximum context length is 4097 tokens, however you requested 4231 tokens (3231 in your prompt; 1000 for the completion). Please reduce your prompt; or completion length.
FYI @isafulf