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.
2 parents c641d10 + 997ead2 commit 8d8f46fCopy full SHA for 8d8f46f
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