Skip to content

Commit 44e0331

Browse files
mssfangtrrwilsonjpalvarezl
authored andcommitted
[OAI-Assistant] Added Missing annotation and delete unnecessary annotation (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>
1 parent 33573f8 commit 44e0331

4 files changed

Lines changed: 25 additions & 11 deletions

File tree

specification/ai/OpenAI.Assistants/tools/tool_resources.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@ model UpdateCodeInterpreterToolResourceOptions {
160160
model UpdateFileSearchToolResourceOptions {
161161
/** A list of vector store IDs to override the current list of the assistant. */
162162
@maxItems(1)
163+
@encodedName("application/json", "vector_store_ids")
163164
vectorStoreIds?: string[];
164165
}

specification/ai/OpenAI.Assistants/vector_stores/files/routes.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ op createVectorStoreFile(
4545

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

specification/ai/data-plane/OpenAI.Assistants/OpenApiV2/preview/2024-05-01-preview/assistants_generated.json

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,14 +1941,22 @@
19411941
"type": "string"
19421942
},
19431943
{
1944-
"name": "file_id",
1944+
"name": "body",
19451945
"in": "body",
1946-
"description": "A File ID that the vector store should use. Useful for tools like `file_search` that can access files.",
19471946
"required": true,
19481947
"schema": {
1949-
"type": "string"
1950-
},
1951-
"x-ms-client-name": "fileId"
1948+
"type": "object",
1949+
"properties": {
1950+
"file_id": {
1951+
"type": "string",
1952+
"description": "A File ID that the vector store should use. Useful for tools like `file_search` that can access files.",
1953+
"x-ms-client-name": "fileId"
1954+
}
1955+
},
1956+
"required": [
1957+
"file_id"
1958+
]
1959+
}
19521960
}
19531961
],
19541962
"responses": {
@@ -4590,13 +4598,14 @@
45904598
"type": "object",
45914599
"description": "Request object to update `file_search` tool resources.",
45924600
"properties": {
4593-
"vectorStoreIds": {
4601+
"vector_store_ids": {
45944602
"type": "array",
45954603
"description": "A list of vector store IDs to override the current list of the assistant.",
45964604
"maxItems": 1,
45974605
"items": {
45984606
"type": "string"
4599-
}
4607+
},
4608+
"x-ms-client-name": "vectorStoreIds"
46004609
}
46014610
}
46024611
},

specification/ai/data-plane/OpenAI.Assistants/OpenApiV3/2024-05-01-preview/assistants_generated.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,12 +1228,17 @@ paths:
12281228
schema:
12291229
$ref: '#/components/schemas/VectorStoreFile'
12301230
requestBody:
1231-
description: A File ID that the vector store should use. Useful for tools like `file_search` that can access files.
12321231
required: true
12331232
content:
12341233
application/json:
12351234
schema:
1236-
type: string
1235+
type: object
1236+
properties:
1237+
file_id:
1238+
type: string
1239+
description: A File ID that the vector store should use. Useful for tools like `file_search` that can access files.
1240+
required:
1241+
- file_id
12371242
/vector_stores/{vectorStoreId}/files/{fileId}:
12381243
get:
12391244
operationId: getVectorStoreFile
@@ -3844,7 +3849,7 @@ components:
38443849
UpdateFileSearchToolResourceOptions:
38453850
type: object
38463851
properties:
3847-
vectorStoreIds:
3852+
vector_store_ids:
38483853
type: array
38493854
items:
38503855
type: string

0 commit comments

Comments
 (0)