Просмотр исходного кода

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

Joel 1 год назад
Родитель
Сommit
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 || '',
       })
     }