Skip to content

Commit

Permalink
[OAI-Assistant] Added Missing annotation and delete unnecessary annot…
Browse files Browse the repository at this point in the history
…ation (Azure#29297)

* fixed the error

* npx tsp compile updates

---------

Co-authored-by: Travis Wilson <travisw@microsoft.com>
Co-authored-by: Jose Alvarez <jpalvarezl@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 4, 2024
1 parent fbf0006 commit cb458eb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,6 @@ model UpdateCodeInterpreterToolResourceOptions {
model UpdateFileSearchToolResourceOptions {
/** A list of vector store IDs to override the current list of the assistant. */
@maxItems(1)
@encodedName("application/json", "vector_store_ids")
vectorStoreIds?: string[];
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ op createVectorStoreFile(

/** A File ID that the vector store should use. Useful for tools like `file_search` that can access files. */
@encodedName("application/json", "file_id")
@body
fileId: string,
): VectorStoreFile;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1941,14 +1941,22 @@
"type": "string"
},
{
"name": "file_id",
"name": "body",
"in": "body",
"description": "A File ID that the vector store should use. Useful for tools like `file_search` that can access files.",
"required": true,
"schema": {
"type": "string"
},
"x-ms-client-name": "fileId"
"type": "object",
"properties": {
"file_id": {
"type": "string",
"description": "A File ID that the vector store should use. Useful for tools like `file_search` that can access files.",
"x-ms-client-name": "fileId"
}
},
"required": [
"file_id"
]
}
}
],
"responses": {
Expand Down Expand Up @@ -4590,13 +4598,14 @@
"type": "object",
"description": "Request object to update `file_search` tool resources.",
"properties": {
"vectorStoreIds": {
"vector_store_ids": {
"type": "array",
"description": "A list of vector store IDs to override the current list of the assistant.",
"maxItems": 1,
"items": {
"type": "string"
}
},
"x-ms-client-name": "vectorStoreIds"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,12 +1228,17 @@ paths:
schema:
$ref: '#/components/schemas/VectorStoreFile'
requestBody:
description: A File ID that the vector store should use. Useful for tools like `file_search` that can access files.
required: true
content:
application/json:
schema:
type: string
type: object
properties:
file_id:
type: string
description: A File ID that the vector store should use. Useful for tools like `file_search` that can access files.
required:
- file_id
/vector_stores/{vectorStoreId}/files/{fileId}:
get:
operationId: getVectorStoreFile
Expand Down Expand Up @@ -3844,7 +3849,7 @@ components:
UpdateFileSearchToolResourceOptions:
type: object
properties:
vectorStoreIds:
vector_store_ids:
type: array
items:
type: string
Expand Down

0 comments on commit cb458eb

Please sign in to comment.