Skip to content

Commit c9817cf

Browse files
committed
update
1 parent 89cf4a8 commit c9817cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/ai-services/openai/assistants-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ client = AzureOpenAI(
116116

117117
assistant_file = client.beta.assistants.files.create(
118118
assistant_id="asst_abc123",
119-
file_id="file-abc123"
119+
file_id="assistant-abc123"
120120
)
121121
print(assistant_file)
122122
```
@@ -128,7 +128,7 @@ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants/{assistant_id
128128
-H "api-key: $AZURE_OPENAI_KEY" \
129129
-H 'Content-Type: application/json' \
130130
-d '{
131-
"file_id": "file-abc123"
131+
"file_id": "assistant-abc123"
132132
}'
133133
```
134134

@@ -317,7 +317,7 @@ client = AzureOpenAI(
317317

318318
assistant_file = client.beta.assistants.files.retrieve(
319319
assistant_id="asst_abc123",
320-
file_id="file-abc123"
320+
file_id="assistant-abc123"
321321
)
322322
print(assistant_file)
323323
```

0 commit comments

Comments
 (0)