From 84f3f74acf7fd611b4cfc8235792264f4e832300 Mon Sep 17 00:00:00 2001 From: nick863 <30440255+nick863@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:09:06 -0800 Subject: [PATCH] Fix createVectorStoreFile API --- .../agents/vector_stores/files/routes.tsp | 4 ++-- .../preview/2024-07-01-preview/azure-ai-projects.json | 10 +++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp b/specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp index fd342488d4db..b0478f698b70 100644 --- a/specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp +++ b/specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp @@ -56,8 +56,8 @@ op createVectorStoreFile is Azure.Core.Foundations.Operation< /** The data sources to be used. This option is mutually exclusive with fileId. */ @doc("Azure asset ID.") - @encodedName("application/json", "data_sources") - dataSources?: VectorStoreDataSource[]; + @encodedName("application/json", "data_source") + dataSource?: VectorStoreDataSource; /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. */ @encodedName("application/json", "chunking_strategy") diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json index 7322095d82dc..d9931b1f48e0 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json @@ -3270,14 +3270,10 @@ "description": "Identifier of the file.", "x-ms-client-name": "fileId" }, - "data_sources": { - "type": "array", + "data_source": { + "$ref": "#/definitions/Agents.VectorStoreDataSource", "description": "Azure asset ID.", - "items": { - "$ref": "#/definitions/Agents.VectorStoreDataSource" - }, - "x-ms-client-name": "dataSources", - "x-ms-identifiers": [] + "x-ms-client-name": "dataSource" }, "chunking_strategy": { "$ref": "#/definitions/Agents.VectorStoreChunkingStrategyRequest",