🪢 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
fix: fix return types on traces router (#882)
Max Deichmanna43f5f38a158
diff --git a/src/server/api/routers/traces.ts b/src/server/api/routers/traces.tsindex e8b1b87059..06154ee6f5 100644--- a/src/server/api/routers/traces.ts+++ b/src/server/api/routers/traces.ts@@ -81,8 +81,7 @@ export const traceRouter = createTRPCRouter({COALESCE(u."promptTokens", 0)::int AS "promptTokens",COALESCE(u."completionTokens", 0)::int AS "completionTokens",COALESCE(u."totalTokens", 0)::int AS "totalTokens",- tl.latency AS "latency",- (count(*) OVER ())::int AS "totalCount"`,+ tl.latency AS "latency"`,input.projectId,observationTimeseriesFilter,input.page,