Use VectorStoreContent vs InterleavedContent in vector store files

This extracts the existing logic to convert chunks to
VectorStoreContent objects into a reusable method and uses that when
returning our list of Vector Store File contents.

It also adds an xfail test for deleting vector store files, as that's
not implemented yet but parking the implementation of that for now.

Signed-off-by: Ben Browning <bbrownin@redhat.com>
This commit is contained in:
Ben Browning 2025-06-18 15:01:42 -04:00
parent 65869d22a4
commit f0d56316a0
5 changed files with 127 additions and 74 deletions

View file

@ -13756,6 +13756,24 @@
"type": "object",
"title": "Response"
},
"VectorStoreContent": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"text"
],
"title": "VectorStoreContent"
},
"VectorStoreFileContentsResponse": {
"type": "object",
"properties": {
@ -13793,7 +13811,7 @@
"content": {
"type": "array",
"items": {
"$ref": "#/components/schemas/InterleavedContentItem"
"$ref": "#/components/schemas/VectorStoreContent"
}
}
},
@ -13879,24 +13897,6 @@
],
"title": "OpenaiSearchVectorStoreRequest"
},
"VectorStoreContent": {
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "text"
},
"text": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"type",
"text"
],
"title": "VectorStoreContent"
},
"VectorStoreSearchResponse": {
"type": "object",
"properties": {