Skip to content

Commit a245249

Browse files
fix: fix the schema for embeddings parameter
1 parent 6325422 commit a245249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/mongodb/mongodbSchemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export const zVoyageEmbeddingParameters = z.object({
1919
outputDimension: z
2020
.preprocess(
2121
unboxNumber,
22-
z.union([z.literal(256), z.literal(512), z.literal(1024), z.literal(2048), z.literal(4096)])
22+
z.union([z.literal("256"), z.literal("512"), z.literal("1024"), z.literal("2048"), z.literal("4096")])
2323
)
2424
.optional()
25-
.default(1024),
25+
.default("1024"),
2626
outputDtype: z.enum(["float", "int8", "uint8", "binary", "ubinary"]).optional().default("float"),
2727
});
2828

0 commit comments

Comments
 (0)