Skip to content

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

fix(comments): reference object check for comment creation (#3108)

marliessophiee5c7686bc7d2
diff --git a/web/src/server/api/routers/comments.ts b/web/src/server/api/routers/comments.ts
index d9eb606d5e..b571a7aaa0 100644
--- a/web/src/server/api/routers/comments.ts
+++ b/web/src/server/api/routers/comments.ts
@@ -13,7 +13,7 @@ import { TRPCError } from "@trpc/server";
const COMMENT_OBJECT_TYPE_TO_PRISMA_MODEL = {
[CommentObjectType.TRACE]: "trace",
[CommentObjectType.OBSERVATION]: "observation",
- [CommentObjectType.SESSION]: "session",
+ [CommentObjectType.SESSION]: "traceSession",
[CommentObjectType.PROMPT]: "prompt",
} as const;