Skip to content

Commit 6ba748d

Browse files
committed
bug fixes
1 parent 1a4b1c4 commit 6ba748d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

articles/ai-services/openai/concepts/models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ These models can only be used with Embedding API requests.
141141
| Model ID | Feature Availability | Max Request (characters) |
142142
| --- | --- | :---: |
143143
| dalle2 | East US | 1000 |
144+
| dalle3 | Sweden Central | 4000 |
144145

145146
### Fine-tuning models (Preview)
146147

articles/ai-services/openai/includes/dall-e-python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ from PIL import Image
100100
import json
101101

102102
client = AzureOpenAI(
103-
api_version="2023-12-01-preview",
104-
api_base=os.environ['AZURE_OPENAI_ENDPOINT'],
105-
api_key=os.environ["AZURE_OPENAI_API_KEY"],
103+
api_version="2023-12-01-preview",
104+
api_key=os.environ["AZURE_OPENAI_API_KEY"],
105+
azure_endpoint=os.environ['AZURE_OPENAI_ENDPOINT']
106106
)
107107

108108
result = client.images.generate(

0 commit comments

Comments
 (0)