asyncwebio / strapi-chatgpt

Integrate ChatGPT into your Strapi application. You get both a UI to interact with ChatGPT and an API end-points to integrate into your applications.
MIT License
17 stars 5 forks source link

Number of tokens exceeded #5

Open emontes opened 1 year ago

emontes commented 1 year ago

After sending several different prompts, the moment came when it sent me the following message:

This model's maximum context length is 2049 tokens, however you requested 4098 tokens (2 in your prompt; 4096 for the completion). Please reduce your prompt; or completion length.

Even if I put a small promt (like hello) I got the error message. image

I guess this has to do with the history of prompts that are being sent to the same conversation. Is there a way to clear the history or to indicate that it is a new conversation?

valentinedwv commented 1 year ago

try 1024 tokens