🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
add filter condition (#278)
Maximilian Deichmann90c02acdce13
diff --git a/src/server/api/routers/traces.ts b/src/server/api/routers/traces.tsindex dd810b63f3..0d9bc98248 100644--- a/src/server/api/routers/traces.ts+++ b/src/server/api/routers/traces.ts@@ -104,7 +104,9 @@ export const traceRouter = createTRPCRouter({sum(completion_tokens) AS "completionTokens",sum(total_tokens) AS "totalTokens"FROM "observations"- WHERE "trace_id" IS NOT NULL AND "project_id" = ${input.projectId}+ WHERE "trace_id" IS NOT NULL AND "type" = 'GENERATION' AND "project_id" = ${+ input.projectId+ }GROUP BY trace_id)SELECT