File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/ai-services/openai Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ client = AzureOpenAI(
116
116
117
117
assistant_file = client.beta.assistants.files.create(
118
118
assistant_id = " asst_abc123" ,
119
- file_id = " file -abc123"
119
+ file_id = " assistant -abc123"
120
120
)
121
121
print (assistant_file)
122
122
```
@@ -128,7 +128,7 @@ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants/{assistant_id
128
128
-H "api-key: $AZURE_OPENAI_KEY" \
129
129
-H 'Content-Type: application/json' \
130
130
-d '{
131
- "file_id": "file -abc123"
131
+ "file_id": "assistant -abc123"
132
132
}'
133
133
```
134
134
@@ -317,7 +317,7 @@ client = AzureOpenAI(
317
317
318
318
assistant_file = client.beta.assistants.files.retrieve(
319
319
assistant_id = " asst_abc123" ,
320
- file_id = " file -abc123"
320
+ file_id = " assistant -abc123"
321
321
)
322
322
print (assistant_file)
323
323
```
You can’t perform that action at this time.
0 commit comments