mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-18 15:52:10 +00:00
fix
This commit is contained in:
@@ -419,7 +419,7 @@ async def on_message(message):
|
|||||||
await message.reply(f"OpenAI API returned an API Error: {e}")
|
await message.reply(f"OpenAI API returned an API Error: {e}")
|
||||||
logger.info(response)
|
logger.info(response)
|
||||||
image_url = response.data[0].url
|
image_url = response.data[0].url
|
||||||
image_desc = response.data[1]
|
image_desc = response.data[0].revised_prompt
|
||||||
logger.debug("Wynikowy obrazek pod url: %s", image_url)
|
logger.debug("Wynikowy obrazek pod url: %s", image_url)
|
||||||
response = requests.get(image_url, timeout=360)
|
response = requests.get(image_url, timeout=360)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user