mishl-dev / Discord-AI-Chatbot

This Discord chatbot is incredibly versatile. Powered incredibly fast Groq API
GNU Affero General Public License v3.0
1.32k stars 417 forks source link

APIError : "Bad context detected!" #202

Closed itz-ankit closed 1 year ago

itz-ankit commented 1 year ago

File "/home/runner/Discord-AI-Chatbot-mod/venv/lib/python3.10/site-packages/openai/api_requestor.py", line 405, in handle_error_response raise error.APIError( openai.error.APIError: Invalid response object from API: '{"detail":"Bad context detected!"}' (HTTP response code was 422)

any idea how to disable this "Bad Context detected!" ? :') cuz most of the times its not responding to the chats because of this.

mishl-dev commented 1 year ago

Yea api error