mickekring / Diane

This is a basic prototype of the app Diane, which is a voice recorder using Whisper and GPT to process text and sends it to Obsidian
16 stars 2 forks source link

InvalidRequestError due to exceeding the model's maximum context length #3

Open carlheath opened 1 year ago

carlheath commented 1 year ago

When using OpenAI's GPT-3.5-turbo model, you may encounter an InvalidRequestError due to exceeding the model's maximum context length. The error message will indicate that your input message has resulted in more tokens than the model can handle. The program might need to adress this issue in order to get a proper response.

To resolve this issue, the user or program needs to reduce the number of tokens in a particular input. There may be several ways to do this: