Fix: Update display time for very short operations and fix outputs and titles for tool calling executions (#8718)
* update display time for very short operations and fix outputs and titles * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * cleanup --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
25746e20ca
commit
927cdd0837
2 changed files with 35 additions and 8 deletions
|
|
@ -41,7 +41,8 @@ export default function DurationDisplay({
|
|||
|
||||
const displayTime = duration ?? durations[chatId] ?? 0;
|
||||
const secondsValue = displayTime / 1000;
|
||||
const humanizedTime = `${secondsValue.toFixed(1)}s`;
|
||||
const humanizedTime =
|
||||
secondsValue < 0.05 ? "< 0.1s" : `${secondsValue.toFixed(1)}s`;
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue