enh: <think> tag support

This commit is contained in:
Timothy Jaeryang Baek committed 2025-01-22 00:13:24 -08:00
1 parent 8d3c73aed5
commit c9dc7299c5
7 files changed
+116 -54

No files matched your search

@@ -195,7 +195,11 @@
</ul>
{/if}
{:else if token.type === 'details'}
<Collapsible title={token.summary} className="w-fit space-y-1">
<Collapsible
title={token.summary}
isLoading={token?.isLoading ?? false}
className="w-fit space-y-1"
>
<div class=" mb-1.5" slot="content">
<svelte:self id={`${id}-${tokenIdx}-d`} tokens={marked.lexer(token.text)} />
</div>