We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1290cc4 commit 2b6f6b8Copy full SHA for 2b6f6b8
Images/ai-images.py
@@ -19,6 +19,7 @@ def image_generate(prompt: str):
19
# If the model endpoint is Azure, we need to use a different header
20
if "azure.com" in url:
21
headers["api-key"] = TOKEN
22
+ # otherwise default to the standard header format for openai
23
else:
24
headers["Authorization"] = f"Bearer {TOKEN}"
25
data = {
0 commit comments