Skip to content

Commit

Permalink
fix: azure dalle generate image
Browse files Browse the repository at this point in the history
  • Loading branch information
lanvent committed Apr 28, 2023
1 parent b0a401a commit 3001ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/chatgpt/chat_gpt_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def create_img(self, query, retry_count=0, api_key=None):
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))
Expand Down

0 comments on commit 3001ba9

Please sign in to comment.