We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6ff5a commit 997ead2Copy full SHA for 997ead2
articles/ai-services/agents/how-to/tools/file-search-upload-files.md
@@ -74,7 +74,7 @@ from azure.ai.agents.models import FilePurpose
74
file_path = "./data/product_info_1.md"
75
76
# Upload the file
77
-file = project_client.agents.upload_file_and_poll(file_path=file_path, purpose=FilePurpose.AGENTS)
+file = project_client.agents.files.upload_file_and_poll(file_path=file_path, purpose=FilePurpose.AGENTS)
78
print(f"Uploaded file, file ID: {file.id}")
79
80
# Create a vector store with the uploaded file
0 commit comments