From 6ca460016744b23fa90c942af4732a6f95b5883a Mon Sep 17 00:00:00 2001 From: Andrew Truong Date: Mon, 28 Oct 2024 22:46:39 -0400 Subject: [PATCH] test --- .../Home/Browse3/pages/TabUseCall.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/TabUseCall.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/TabUseCall.tsx index 22ce351c20d..a4efe33086d 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/TabUseCall.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/TabUseCall.tsx @@ -28,7 +28,7 @@ os.environ["WF_TRACE_SERVER_URL"] = "http://127.0.0.1:6345" ` + codeFetchPython; } - let codeFetchJS = `import * as weave from 'weave'; + const codeFetchJS = `import * as weave from 'weave'; const client = await weave.init("${entity}/${project}"); const call = await client.getCall("${callId}")`; @@ -42,9 +42,11 @@ const call = await client.getCall("${callId}")`; const codeNoteJS = `await call.feedback.addNote('This is delightful!')`; const codeFeedbackJS = `await call.feedback.add({correctness: {value: 4}})`; - const codeReaction = sdkType === 'js-sdk' ? codeReactionJS : codeReactionPython; + const codeReaction = + sdkType === 'js-sdk' ? codeReactionJS : codeReactionPython; const codeNote = sdkType === 'js-sdk' ? codeNoteJS : codeNotePython; - const codeFeedback = sdkType === 'js-sdk' ? codeFeedbackJS : codeFeedbackPython; + const codeFeedback = + sdkType === 'js-sdk' ? codeFeedbackJS : codeFeedbackPython; return ( @@ -72,11 +74,7 @@ const call = await client.getCall("${callId}")`; or a note like this: - + or custom feedback like this: