File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/ai-services/openai/how-to Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,14 +145,14 @@ assistant = client.beta.assistants.create(
145
145
``` console
146
146
# Upload a file with an " assistants" purpose
147
147
148
- curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/files?api-version=2024-05 -01-preview \
148
+ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/files?api-version=2024-08 -01-preview \
149
149
-H "api-key: $AZURE_OPENAI_API_KEY" \
150
150
-F purpose="assistants" \
151
151
-F file="@c:\\path_to_file\\file.csv"
152
152
153
153
# Create an assistant using the file ID
154
154
155
- curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants?api-version=2024-05 -01-preview \
155
+ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants?api-version=2024-08 -01-preview \
156
156
-H "api-key: $AZURE_OPENAI_API_KEY" \
157
157
-H 'Content-Type: application/json' \
158
158
-d '{
You can’t perform that action at this time.
0 commit comments