Sfoglia il codice sorgente

fix: azure dalle generate image

master
lanvent 1 anno fa
parent
commit
3001ba9266
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      bot/chatgpt/chat_gpt_bot.py

+ 1
- 1
bot/chatgpt/chat_gpt_bot.py Vedi File

@@ -174,7 +174,7 @@ class AzureChatGPTBot(ChatGPTBot):
time.sleep(int(retry_after))
response = requests.get(operation_location, headers=headers)
status = response.json()["status"]
image_url = response.json()["result"]["contentUrl"]
image_url = response.json()["result"]["contentUrl"]
return True, image_url
except Exception as e:
logger.error("create image error: {}".format(e))


Loading…
Annulla
Salva