Skip to content

Commit 2b89025

Browse files
Merge pull request #5235 from aahill/removal
code update
2 parents 3eacf07 + 3baba13 commit 2b89025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-agent-service
88
ms.topic: how-to
9-
ms.date: 04/09/2025
9+
ms.date: 05/28/2025
1010
author: aahill
1111
ms.author: aahi
1212
zone_pivot_groups: selection-bing-grounding-code
@@ -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.files.upload_file_and_poll(file_path=file_path, purpose=FilePurpose.AGENTS)
77+
file = project_client.agents.files.upload_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)