소스 검색

fix: debug run not show total right tokens (#3843)

Joel 1 년 전
부모
커밋
019d7069f8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts

+ 1 - 0
web/app/components/workflow/nodes/_base/hooks/use-one-step-run.ts

@@ -182,6 +182,7 @@ const useOneStepRun = <T>({
     finally {
       setRunResult({
         ...res,
+        total_tokens: res.execution_metadata?.total_tokens || 0,
         created_by: res.created_by_account?.name || '',
       })
     }