Skip to content

Commit

Permalink
feat: match namespace length limits in proxy wrapper validator
Browse files Browse the repository at this point in the history
  • Loading branch information
RihanArfan committed Aug 15, 2024
1 parent 1e473f7 commit 95cf814
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default eventHandler(async (event) => {
const { vectors } = await readValidatedBody(event, z.object({
vectors: z.array(z.object({
id: z.string().min(1).max(256),
namespace: z.string().optional(),
namespace: z.string().min(1).max(63).optional(),
values: z.array(z.number()),
metadata: z.record(z.string(), z.any()).optional()
}))
Expand All @@ -31,7 +31,7 @@ export default eventHandler(async (event) => {
query: z.array(z.number()),
params: z.object({
topK: z.number().optional(),
namespace: z.string().optional(),
namespace: z.string().min(1).max(63).optional(),
returnValues: z.boolean().optional(),
returnMetadata: z.boolean().optional(),
filter: z.record(z.string(), z.any()).optional()
Expand Down

0 comments on commit 95cf814

Please sign in to comment.