File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
articles/ai-services/openai Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ These models can only be used with Embedding API requests.
141
141
| Model ID | Feature Availability | Max Request (characters) |
142
142
| --- | --- | :---: |
143
143
| dalle2 | East US | 1000 |
144
+ | dalle3 | Sweden Central | 4000 |
144
145
145
146
### Fine-tuning models (Preview)
146
147
Original file line number Diff line number Diff line change @@ -100,9 +100,9 @@ from PIL import Image
100
100
import json
101
101
102
102
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 ' ]
106
106
)
107
107
108
108
result = client.images.generate(
You can’t perform that action at this time.
0 commit comments