chore: Formatting
This commit is contained in:
parent
e233ec3855
commit
9b696fa8a2
|
|
@ -138,7 +138,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#snippet renderSection(section: typeof sectionsParsed[number], index: number)}
|
{#snippet renderSection(section: (typeof sectionsParsed)[number], index: number)}
|
||||||
{#if section.type === AgenticSectionType.TEXT}
|
{#if section.type === AgenticSectionType.TEXT}
|
||||||
<div class="agentic-text">
|
<div class="agentic-text">
|
||||||
<MarkdownContent content={section.content} attachments={message?.extra} />
|
<MarkdownContent content={section.content} attachments={message?.extra} />
|
||||||
|
|
@ -283,7 +283,7 @@
|
||||||
{#if highlightTurns && turnGroups.length > 1}
|
{#if highlightTurns && turnGroups.length > 1}
|
||||||
{#each turnGroups as turn, turnIndex (turnIndex)}
|
{#each turnGroups as turn, turnIndex (turnIndex)}
|
||||||
{@const turnStats = message?.timings?.agentic?.perTurn?.[turnIndex]}
|
{@const turnStats = message?.timings?.agentic?.perTurn?.[turnIndex]}
|
||||||
<div class="agentic-turn hover:bg-muted/80 dark:hover:bg-muted/30 my-2">
|
<div class="agentic-turn my-2 hover:bg-muted/80 dark:hover:bg-muted/30">
|
||||||
<span class="agentic-turn-label">Turn {turnIndex + 1}</span>
|
<span class="agentic-turn-label">Turn {turnIndex + 1}</span>
|
||||||
{#each turn.sections as section, sIdx (turn.flatIndices[sIdx])}
|
{#each turn.sections as section, sIdx (turn.flatIndices[sIdx])}
|
||||||
{@render renderSection(section, turn.flatIndices[sIdx])}
|
{@render renderSection(section, turn.flatIndices[sIdx])}
|
||||||
|
|
|
||||||
|
|
@ -153,8 +153,7 @@
|
||||||
|
|
||||||
let highlightAgenticTurns = $derived(
|
let highlightAgenticTurns = $derived(
|
||||||
hasAgenticMarkers &&
|
hasAgenticMarkers &&
|
||||||
(currentConfig.alwaysShowAgenticTurns ||
|
(currentConfig.alwaysShowAgenticTurns || activeStatsView === ChatMessageStatsView.SUMMARY)
|
||||||
activeStatsView === ChatMessageStatsView.SUMMARY)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let displayedModel = $derived(message.model ?? null);
|
let displayedModel = $derived(message.model ?? null);
|
||||||
|
|
@ -288,7 +287,10 @@
|
||||||
|
|
||||||
<div class="info my-6 grid gap-4 tabular-nums">
|
<div class="info my-6 grid gap-4 tabular-nums">
|
||||||
{#if displayedModel}
|
{#if displayedModel}
|
||||||
<div bind:this={statsContainerEl} class="inline-flex flex-wrap items-start gap-2 text-xs text-muted-foreground">
|
<div
|
||||||
|
bind:this={statsContainerEl}
|
||||||
|
class="inline-flex flex-wrap items-start gap-2 text-xs text-muted-foreground"
|
||||||
|
>
|
||||||
{#if isRouter}
|
{#if isRouter}
|
||||||
<ModelsSelector
|
<ModelsSelector
|
||||||
currentModel={displayedModel}
|
currentModel={displayedModel}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue