Closed pedrotelesh closed 1 year ago
the same problem
Same here
discordbot | 2023-06-15 03:31:57 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: e8053ee754189de6fd7ac5fba8bb5047).
discordbot | 2023-06-15 03:33:34 ERROR discord.client Ignoring exception in on_message
discordbot | Traceback (most recent call last):
discordbot | File "/usr/local/lib/python3.11/site-packages/discord/client.py", line 441, in _run_event
discordbot | await coro(*args, **kwargs)
discordbot | File "/app/main.py", line 141, in on_message
discordbot | response = await generate_response(instructions, search_results, image_caption, history)
discordbot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
discordbot | File "/app/utilities/ai_utils.py", line 73, in generate_response
discordbot | choices = response_data['choices']
discordbot | ~~~~~~~~~~~~~^^^^^^^^^^^
discordbot | KeyError: 'choices'```
same
Yes I am also getting same error
Traceback (most recent call last): File "/home/container/.local/lib/python3.9/site-packages/discord/client.py", line 441, in _run_event await coro(*args, **kwargs) File "/home/container/main.py", line 156, in on_message response = await generate_response(instructions, search_results, image_caption, history) File "/home/container/utilities/ai_utils.py", line 71, in generate_response choices = response_data['choices'] KeyError: 'choices'
Yes, i'm using the main, i think it's because my instructions are too big
Die
Yes, i'm using the main, i think it's because my instructions are too big