sahbic / profile-gpt

An AI-driven tool to analyze your profile and gain insights into how ChatGPT interprets your personality.
MIT License
180 stars 12 forks source link

InvalidRequestError: This model's maximum context length is 4097 tokens. However, your messages resulted in 4488 tokens. Please reduce the length of the messages. #2

Open Aflous opened 1 year ago

Aflous commented 1 year ago

The prompts might be too long for OpenAI gpt-3.5-turbo constraints (4097 tokens)

baditaflorin commented 1 year ago

Getting same error

YitziG commented 1 year ago

Setting FAST_MODEL=gpt-4 worked for me.

rayhanam commented 1 year ago

Setting FAST_MODEL=gpt-4 worked for me.

after setting FAST_MODEL=gpt-4 I got: InvalidRequestError: The model: gpt-4 does not exist