Преглед на файлове

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 || '',
       })
     }