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

after updating main.py #184

Closed sukhman-16 closed 1 year ago

sukhman-16 commented 1 year ago

Traceback (most recent call last): File "/home/runner/TOPG/utilities/ai_utils.py", line 94, in generate_response response_data = await response.json() File "/home/runner/TOPG/venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1104, in json raise ContentTypeError( aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/plain; charset=utf-8', url=URL('https://chat-aim.vercel.app/api/openai/v1/chat/completions')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/runner/TOPG/venv/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event await coro(*args, **kwargs) File "main.py", line 133, in on_message response = await generate_response(instructions, search_results, history, file_content) File "/home/runner/TOPG/utilities/ai_utils.py", line 101, in generate_response print(f"\033[91mAn error occurred during the API request: {e} \n Response : {response_data}\033[0m") UnboundLocalError: local variable 'response_data' referenced before assignment

selajuf commented 1 year ago

++

curiousartem commented 1 year ago

API is currently down.

spadesoface commented 1 year ago

any estimates?

curiousartem commented 1 year ago

none

alaotach commented 1 year ago

It's still down

mach7 commented 1 year ago

Seems to me that API is being hosted on a vercel.app account and the account is either disabled or suspended. Be nice to have the api too so that the code was dependable to use. Its the best one that is out there. All the other bots that I have tried just don't work.

IkdanYT commented 1 year ago

Buy PrismGPT

mach7 commented 1 year ago

Screenshot_3 Not any better if we can't get to the site...

mishl-dev commented 1 year ago

185