Skip to content

Commit e1c40d2

Browse files
fix: Pydantic validation error with list-type metadata in vector search (#3797)
1 parent 5675ef1 commit e1c40d2

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/resources/vector-stores/files.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,14 @@ export interface VectorStoreFile {
135135

136136
vector_store_id: string;
137137

138-
attributes?: { [key: string]: unknown };
138+
/**
139+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
140+
* for storing additional information about the object in a structured format, and
141+
* querying for objects via API or the dashboard. Keys are strings with a maximum
142+
* length of 64 characters. Values are strings with a maximum length of 512
143+
* characters, booleans, or numbers.
144+
*/
145+
attributes?: { [key: string]: string | number | boolean };
139146

140147
/**
141148
* Error information for failed vector store file processing.

0 commit comments

Comments
 (0)