Update OpenAPI

This commit is contained in:
Ashwin Bharambe 2025-02-20 21:31:53 -08:00
parent 25613953d5
commit 378e1603b0
2 changed files with 25 additions and 11 deletions

View file

@ -4929,11 +4929,21 @@
"description": "The identifier of the model to use. The model must be an embedding model registered with Llama Stack and available via the /models endpoint." "description": "The identifier of the model to use. The model must be an embedding model registered with Llama Stack and available via the /models endpoint."
}, },
"contents": { "contents": {
"type": "array", "oneOf": [
"items": { {
"$ref": "#/components/schemas/InterleavedContent" "type": "array",
}, "items": {
"description": "List of contents to generate embeddings for. Note that content can be multimodal. The behavior depends on the model and provider. Some models may only support text." "type": "string"
}
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/InterleavedContentItem"
}
}
],
"description": "List of contents to generate embeddings for. Each content can be a string or an InterleavedContentItem (and hence can be multimodal). The behavior depends on the model and provider. Some models may only support text."
} }
}, },
"additionalProperties": false, "additionalProperties": false,

View file

@ -3224,13 +3224,17 @@ components:
The identifier of the model to use. The model must be an embedding model The identifier of the model to use. The model must be an embedding model
registered with Llama Stack and available via the /models endpoint. registered with Llama Stack and available via the /models endpoint.
contents: contents:
type: array oneOf:
items: - type: array
$ref: '#/components/schemas/InterleavedContent' items:
type: string
- type: array
items:
$ref: '#/components/schemas/InterleavedContentItem'
description: >- description: >-
List of contents to generate embeddings for. Note that content can be List of contents to generate embeddings for. Each content can be a string
multimodal. The behavior depends on the model and provider. Some models or an InterleavedContentItem (and hence can be multimodal). The behavior
may only support text. depends on the model and provider. Some models may only support text.
additionalProperties: false additionalProperties: false
required: required:
- model_id - model_id