Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix

Max Deichmanna7c651b420b5
diff --git a/src/utils/zod.ts b/src/utils/zod.ts
index b05841f55c..339e407551 100644
--- a/src/utils/zod.ts
+++ b/src/utils/zod.ts
@@ -39,12 +39,9 @@ export const jsonSchema: z.ZodType<Json> = z.lazy(() =>
);
export const paginationZod = {
- page: z.preprocess(
- (x) => (x === "" ? undefined : Number(x)),
- z.number().default(1),
- ),
+ page: z.preprocess((x) => (x === "" ? undefined : x), z.number().default(1)),
limit: z.preprocess(
- (x) => (x === "" ? undefined : Number(x)),
+ (x) => (x === "" ? undefined : x),
z.number().lte(100).default(50),
),
};