Closed sukhman-16 closed 1 year ago
++
API is currently down.
any estimates?
none
It's still down
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.
Buy PrismGPT
Not any better if we can't get to the site...
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