mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 14:08:00 +00:00
fix(api): make sure vector store file content is not returned as a type
This commit is contained in:
parent
1721aafc1f
commit
5563cd9a51
3 changed files with 72 additions and 44 deletions
61
docs/_static/llama-stack-spec.html
vendored
61
docs/_static/llama-stack-spec.html
vendored
|
@ -14849,27 +14849,6 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"title": "Response"
|
"title": "Response"
|
||||||
},
|
},
|
||||||
"VectorStoreContent": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"const": "text",
|
|
||||||
"description": "Content type, currently only \"text\" is supported"
|
|
||||||
},
|
|
||||||
"text": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "The actual text content"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additionalProperties": false,
|
|
||||||
"required": [
|
|
||||||
"type",
|
|
||||||
"text"
|
|
||||||
],
|
|
||||||
"title": "VectorStoreContent",
|
|
||||||
"description": "Content item from a vector store file or search result."
|
|
||||||
},
|
|
||||||
"VectorStoreFileContentsResponse": {
|
"VectorStoreFileContentsResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -14910,7 +14889,25 @@
|
||||||
"content": {
|
"content": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/VectorStoreContent"
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "text",
|
||||||
|
"description": "Content type, currently only \"text\" is supported"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The actual text content"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"title": "VectorStoreContent",
|
||||||
|
"description": "Content item from a vector store file or search result."
|
||||||
},
|
},
|
||||||
"description": "List of content items from the file"
|
"description": "List of content items from the file"
|
||||||
}
|
}
|
||||||
|
@ -15038,7 +15035,25 @@
|
||||||
"content": {
|
"content": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/components/schemas/VectorStoreContent"
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "text",
|
||||||
|
"description": "Content type, currently only \"text\" is supported"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The actual text content"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"title": "VectorStoreContent",
|
||||||
|
"description": "Content item from a vector store file or search result."
|
||||||
},
|
},
|
||||||
"description": "List of content items matching the search query"
|
"description": "List of content items matching the search query"
|
||||||
}
|
}
|
||||||
|
|
54
docs/_static/llama-stack-spec.yaml
vendored
54
docs/_static/llama-stack-spec.yaml
vendored
|
@ -11021,24 +11021,6 @@ components:
|
||||||
Response:
|
Response:
|
||||||
type: object
|
type: object
|
||||||
title: Response
|
title: Response
|
||||||
VectorStoreContent:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
type:
|
|
||||||
type: string
|
|
||||||
const: text
|
|
||||||
description: >-
|
|
||||||
Content type, currently only "text" is supported
|
|
||||||
text:
|
|
||||||
type: string
|
|
||||||
description: The actual text content
|
|
||||||
additionalProperties: false
|
|
||||||
required:
|
|
||||||
- type
|
|
||||||
- text
|
|
||||||
title: VectorStoreContent
|
|
||||||
description: >-
|
|
||||||
Content item from a vector store file or search result.
|
|
||||||
VectorStoreFileContentsResponse:
|
VectorStoreFileContentsResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -11063,7 +11045,23 @@ components:
|
||||||
content:
|
content:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/VectorStoreContent'
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: text
|
||||||
|
description: >-
|
||||||
|
Content type, currently only "text" is supported
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
description: The actual text content
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- text
|
||||||
|
title: VectorStoreContent
|
||||||
|
description: >-
|
||||||
|
Content item from a vector store file or search result.
|
||||||
description: List of content items from the file
|
description: List of content items from the file
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
|
@ -11154,7 +11152,23 @@ components:
|
||||||
content:
|
content:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/VectorStoreContent'
|
type: object
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
const: text
|
||||||
|
description: >-
|
||||||
|
Content type, currently only "text" is supported
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
description: The actual text content
|
||||||
|
additionalProperties: false
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- text
|
||||||
|
title: VectorStoreContent
|
||||||
|
description: >-
|
||||||
|
Content item from a vector store file or search result.
|
||||||
description: >-
|
description: >-
|
||||||
List of content items matching the search query
|
List of content items matching the search query
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
|
|
|
@ -220,7 +220,6 @@ class VectorStoreSearchRequest(BaseModel):
|
||||||
rewrite_query: bool = False
|
rewrite_query: bool = False
|
||||||
|
|
||||||
|
|
||||||
@json_schema_type
|
|
||||||
class VectorStoreContent(BaseModel):
|
class VectorStoreContent(BaseModel):
|
||||||
"""Content item from a vector store file or search result.
|
"""Content item from a vector store file or search result.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue