Skip to content

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

fix(scores): add environment field to upsert annotation score (#7446)

marliessophie9f2dd6190d5c
diff --git a/web/src/server/api/routers/scores.ts b/web/src/server/api/routers/scores.ts
index e8c3d1fdb0..d7a3a33c04 100644
--- a/web/src/server/api/routers/scores.ts
+++ b/web/src/server/api/routers/scores.ts
@@ -432,6 +432,7 @@ export const scoresRouter = createTRPCRouter({
trace_id: score.traceId,
observation_id: score.observationId,
session_id: score.sessionId,
+ environment: score.environment,
});
updatedScore = {