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:
Sébastien Han 2025-11-13 09:29:13 +01:00
parent 221f28b685
commit 09280301de
No known key found for this signature in database
6 changed files with 3126 additions and 15140 deletions

View file

@ -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.