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(
145145``` console
146146# Upload a file with an " assistants" purpose
147147
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 \
149149 -H "api-key: $AZURE_OPENAI_API_KEY" \
150150 -F purpose="assistants" \
151151 -F file="@c:\\path_to_file\\file.csv"
152152
153153# Create an assistant using the file ID
154154
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 \
156156 -H "api-key: $AZURE_OPENAI_API_KEY" \
157157 -H 'Content-Type: application/json' \
158158 -d '{
You can’t perform that action at this time.
0 commit comments