mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 15:02:02 +00:00
🥧 refactor: Show Failed Call Fractions and Preview Age (#16468)
* 🥧 fix: Show Failed Call Fractions and Preview Age * 🗑️ chore: Remove Unused Failure Labels * 🕒 test: Verify Live Failure Close Times * 🧵 fix: Select Accessible Badge Labels Without Nested Ternaries * 🪆 fix: Show One Failure Pill for Live Phase Groups --------- Co-authored-by: Lia <lia@librechat.ai>
This commit is contained in:
parent
46f81b651e
commit
7e786baa22
19 changed files with 358 additions and 65 deletions
|
|
@ -9,6 +9,7 @@ const {
|
|||
ErrorTypes,
|
||||
UsageEvents,
|
||||
getRunStepDurationMs,
|
||||
getRunStepCloseMetadata,
|
||||
} = require('librechat-data-provider');
|
||||
const {
|
||||
GraphEvents,
|
||||
|
|
@ -595,6 +596,7 @@ function getDefaultHandlers({
|
|||
const part = typeof index === 'number' ? contentParts[index] : undefined;
|
||||
if (part?.type === ContentTypes.TOOL_CALL && part.tool_call) {
|
||||
part.tool_call.runStepStatus = data.status;
|
||||
Object.assign(part.tool_call, getRunStepCloseMetadata(data));
|
||||
/**
|
||||
* The raw derivable duration, left unset rather than zeroed when
|
||||
* the event cannot support a trustworthy one — no `created_at`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue