mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
fix: Query default values can't be set in Annotated
The error is that Query default values can't be set in Annotated; they must be set with = in the function signature. See the error: ``` The error is that Query default values can't be set in Annotated; they must be set with = in the function signature. Searching for where include_embeddings is defined: ``` Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
221f28b685
commit
09280301de
6 changed files with 3126 additions and 15140 deletions
|
|
@ -737,8 +737,8 @@ class VectorIO(Protocol):
|
|||
self,
|
||||
vector_store_id: str,
|
||||
file_id: str,
|
||||
include_embeddings: Annotated[bool | None, Query(default=False)] = False,
|
||||
include_metadata: Annotated[bool | None, Query(default=False)] = False,
|
||||
include_embeddings: Annotated[bool | None, Query()] = False,
|
||||
include_metadata: Annotated[bool | None, Query()] = False,
|
||||
) -> VectorStoreFileContentResponse:
|
||||
"""Retrieves the contents of a vector store file.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue