fix: spend time and token (#47)

This commit is contained in:
Joel
2023-05-16 16:52:03 +08:00
committed by GitHub
parent d680fca996
commit 5fcd5c2499
3 changed files with 6 additions and 5 deletions

View File

@@ -247,8 +247,8 @@ const Debug: FC<IDebug> = ({
...draft[index],
more: {
time: dayjs.unix(newResponseItem.created_at).format('hh:mm A'),
tokens: newResponseItem.answer_tokens,
latency: (newResponseItem.provider_response_latency / 1000).toFixed(2),
tokens: newResponseItem.answer_tokens + newResponseItem.message_tokens,
latency: newResponseItem.provider_response_latency.toFixed(2),
}
}
}