mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 22:27:13 +08:00
fix: azure dalle generate image
This commit is contained in:
@@ -174,7 +174,7 @@ class AzureChatGPTBot(ChatGPTBot):
|
|||||||
time.sleep(int(retry_after))
|
time.sleep(int(retry_after))
|
||||||
response = requests.get(operation_location, headers=headers)
|
response = requests.get(operation_location, headers=headers)
|
||||||
status = response.json()["status"]
|
status = response.json()["status"]
|
||||||
image_url = response.json()["result"]["contentUrl"]
|
image_url = response.json()["result"]["contentUrl"]
|
||||||
return True, image_url
|
return True, image_url
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("create image error: {}".format(e))
|
logger.error("create image error: {}".format(e))
|
||||||
|
|||||||
Reference in New Issue
Block a user