Skip to content

Commit

Permalink
Fix createVectorStoreFile API
Browse files Browse the repository at this point in the history
  • Loading branch information
nick863 committed Jan 18, 2025
1 parent 45d7bd5 commit 84f3f74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
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

0 comments on commit 84f3f74

Please sign in to comment.