Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix create vector store file API according to new service definition #32221

Open
wants to merge 1 commit into
base: feature/azure-ai-projects
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "@typespec/rest";

Check failure on line 1 in specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp

View workflow job for this annotation

GitHub Actions / Protected Files

File 'specification/ai/Azure.AI.Projects/agents/vector_stores/files/routes.tsp' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
import "@typespec/http";
import "@typespec/versioning";

Expand Down Expand Up @@ -56,8 +56,8 @@

/** 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")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check failure on line 1 in specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json

View workflow job for this annotation

GitHub Actions / Protected Files

File 'specification/ai/data-plane/Azure.AI.Projects/preview/2024-07-01-preview/azure-ai-projects.json' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
"swagger": "2.0",
"info": {
"title": "Azure AI",
Expand Down Expand Up @@ -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",
Expand Down
Loading