Skip to content

Commit 8d8f46f

Browse files
Merge pull request #5217 from aahill/removal
updating code
2 parents c641d10 + 997ead2 commit 8d8f46f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/agents/how-to/tools/file-search-upload-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ from azure.ai.agents.models import FilePurpose
7474
file_path = "./data/product_info_1.md"
7575

7676
# Upload the file
77-
file = project_client.agents.upload_file_and_poll(file_path=file_path, purpose=FilePurpose.AGENTS)
77+
file = project_client.agents.files.upload_file_and_poll(file_path=file_path, purpose=FilePurpose.AGENTS)
7878
print(f"Uploaded file, file ID: {file.id}")
7979

8080
# Create a vector store with the uploaded file

0 commit comments

Comments
 (0)