Skip to content

Commit 37bab4f

Browse files
fix: Pydantic validation error with list-type metadata in vector search (#3797)
1 parent 254c646 commit 37bab4f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 103
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-185ec058880381a5526ac91a488af1833f55656e36cd10b3795eb8fd4d75026f.yml
3-
openapi_spec_hash: fa935c08e25d23cff624e5e150f8e6ca
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-73fc7f59a69be032d1b18e2fff3ed7509e175703332723b27aac50e2514ca854.yml
3+
openapi_spec_hash: a22051c017a4822ef689585896659675
44
config_hash: 39578cfdeb4a10121f2cb3fa3e4d5e20

src/llama_stack_client/types/vector_stores/vector_store_file.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ class VectorStoreFile(BaseModel):
6363

6464
vector_store_id: str
6565

66-
attributes: Optional[Dict[str, object]] = None
66+
attributes: Optional[Dict[str, Union[str, float, bool]]] = None
67+
"""Set of 16 key-value pairs that can be attached to an object.
68+
69+
This can be useful for storing additional information about the object in a
70+
structured format, and querying for objects via API or the dashboard. Keys are
71+
strings with a maximum length of 64 characters. Values are strings with a
72+
maximum length of 512 characters, booleans, or numbers.
73+
"""
6774

6875
last_error: Optional[LastError] = None
6976
"""Error information for failed vector store file processing."""

0 commit comments

Comments
 (0)