Skip to content

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

fix: Add additional projectid condition (#1393)

Max Deichmannbf9badb71137
diff --git a/web/src/features/prompts/server/prompt-router.ts b/web/src/features/prompts/server/prompt-router.ts
index 6738a70aab..203d11f528 100644
--- a/web/src/features/prompts/server/prompt-router.ts
+++ b/web/src/features/prompts/server/prompt-router.ts
@@ -59,6 +59,7 @@ export const promptRouter = createTRPCRouter({
fn.count("observations.id").as("count"),
])
.where("prompts.project_id", "=", input.projectId)
+ .where("observations.project_id", "=", input.projectId)
.groupBy("prompts.name");
const compiledQuery = promptCountQuery.compile();