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

This commit is contained in:
Joel 2024-04-25 18:22:30 +08:00 committed by GitHub
parent c54fcfb45d
commit 019d7069f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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