Skip to content

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

fix: improve filteroptions api (#1993)

Max Deichmannec1a9c53e7a0
diff --git a/web/src/server/api/routers/generations/filterOptionsQuery.ts b/web/src/server/api/routers/generations/filterOptionsQuery.ts
index 760997b0ed..5a855cbce8 100644
--- a/web/src/server/api/routers/generations/filterOptionsQuery.ts
+++ b/web/src/server/api/routers/generations/filterOptionsQuery.ts
@@ -59,7 +59,7 @@ export const filterOptionsQuery = protectedProjectProcedure
AND o.prompt_id IS NOT NULL
AND p.project_id = ${input.projectId}
GROUP BY 1
- LIMIT 1000
+ LIMIT 1000;
`);
const traceName = await ctx.prisma.$queryRaw<
Array<{
@@ -76,7 +76,7 @@ export const filterOptionsQuery = protectedProjectProcedure
AND o.project_id = ${input.projectId}
AND t.project_id = ${input.projectId}
GROUP BY 1
- LIMIT 1000
+ LIMIT 1000;
`);
// typecheck filter options, needs to include all columns with options