chore: format
This commit is contained in:
@@ -29,9 +29,9 @@
|
||||
|
||||
$: toolCallCount = tokens.filter((t) => t?.attributes?.type === 'tool_calls').length;
|
||||
$: reasoningCount = tokens.filter((t) => t?.attributes?.type === 'reasoning').length;
|
||||
$: hasPending = !messageDone && tokens.some(
|
||||
(t) => t?.attributes?.done !== undefined && t?.attributes?.done !== 'true'
|
||||
);
|
||||
$: hasPending =
|
||||
!messageDone &&
|
||||
tokens.some((t) => t?.attributes?.done !== undefined && t?.attributes?.done !== 'true');
|
||||
|
||||
$: codeInterpreterCount = tokens.filter((t) => t?.attributes?.type === 'code_interpreter').length;
|
||||
|
||||
|
||||
@@ -367,7 +367,11 @@
|
||||
</ul>
|
||||
{/if}
|
||||
{:else if token.type === 'detail_group'}
|
||||
<ConsecutiveDetailsGroup id={`${id}-${tokenIdx}-detail-group`} tokens={token.items} messageDone={done}>
|
||||
<ConsecutiveDetailsGroup
|
||||
id={`${id}-${tokenIdx}-detail-group`}
|
||||
tokens={token.items}
|
||||
messageDone={done}
|
||||
>
|
||||
<div slot="content" class="space-y-1">
|
||||
{#each token.items as detailToken, detailIdx}
|
||||
{@const textContent = getDetailTextContent(detailToken)}
|
||||
|
||||
Reference in New Issue
Block a user