File tree 1 file changed +2
-2
lines changed
src/runtime/vectorize/server/api/_hub/vectorize
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default eventHandler(async (event) => {
18
18
const { vectors } = await readValidatedBody ( event , z . object ( {
19
19
vectors : z . array ( z . object ( {
20
20
id : z . string ( ) . min ( 1 ) . max ( 256 ) ,
21
- namespace : z . string ( ) . optional ( ) ,
21
+ namespace : z . string ( ) . min ( 1 ) . max ( 63 ) . optional ( ) ,
22
22
values : z . array ( z . number ( ) ) ,
23
23
metadata : z . record ( z . string ( ) , z . any ( ) ) . optional ( )
24
24
} ) )
@@ -31,7 +31,7 @@ export default eventHandler(async (event) => {
31
31
query : z . array ( z . number ( ) ) ,
32
32
params : z . object ( {
33
33
topK : z . number ( ) . optional ( ) ,
34
- namespace : z . string ( ) . optional ( ) ,
34
+ namespace : z . string ( ) . min ( 1 ) . max ( 63 ) . optional ( ) ,
35
35
returnValues : z . boolean ( ) . optional ( ) ,
36
36
returnMetadata : z . boolean ( ) . optional ( ) ,
37
37
filter : z . record ( z . string ( ) , z . any ( ) ) . optional ( )
You can’t perform that action at this time.
0 commit comments