Skip to content

Commit

Permalink
fix: make vectorize query params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
RihanArfan committed Oct 27, 2024
1 parent 3077181 commit d92932e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default eventHandler(async (event) => {
returnValues: z.boolean().optional(),
returnMetadata: z.union([z.literal('none'), z.literal('indexed'), z.literal('all')]).optional(),
filter: z.record(z.string(), z.any()).optional()
})
}).optional()
}).parse)
return vectorize.query(query, params)
}
Expand Down

0 comments on commit d92932e

Please sign in to comment.