From 0be69f5485d35f28629e8ff65b5194a77f9d2217 Mon Sep 17 00:00:00 2001 From: Koji Matsumoto Date: Thu, 12 Dec 2024 12:44:32 +0900 Subject: [PATCH] fix reducer --- .../components/panel/feedback-block.tsx | 50 ++++++++++++++++--- .../p/[agentId]/beta-proto/graph/reducer.ts | 2 + 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/app/(playground)/p/[agentId]/beta-proto/giselle-node/components/panel/feedback-block.tsx b/app/(playground)/p/[agentId]/beta-proto/giselle-node/components/panel/feedback-block.tsx index 0b625a47..705d3be4 100644 --- a/app/(playground)/p/[agentId]/beta-proto/giselle-node/components/panel/feedback-block.tsx +++ b/app/(playground)/p/[agentId]/beta-proto/giselle-node/components/panel/feedback-block.tsx @@ -18,7 +18,11 @@ export const FeedbackBlock = (props: { traceId: string }) => { const submit = (e) => { e.preventDefault(); - const lf = new Langfuse(); + const lf = new Langfuse({ + publicKey: process.env.NEXT_PUBLIC_LANGFUSE_PUBLIC_KEY, + secretKey: process.env.NEXT_PUBLIC_LANGFUSE_SECRET_KEY, + baseUrl: process.env.NEXT_PUBLIC_LANGFUSE_BASEURL, + }); lf.score({ traceId: props.traceId, name: "user_feedback", @@ -30,11 +34,12 @@ export const FeedbackBlock = (props: { traceId: string }) => { return (
+