]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
bbb1f0ac2bd6b576608899e7b5ad2a3617859a46
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 import { RotateCw } from '@lucide/svelte';
3 import { Button } from '$lib/components/ui/button';
4 import ChatMessageActionCard from './ChatMessageActionCard.svelte';
5
6 interface Props {
7 onDecision: (shouldContinue: boolean) => void;
8 }
9
10 let { onDecision }: Props = $props();
11 </script>
12
13 <ChatMessageActionCard icon={RotateCw}>
14 {#snippet message()}
15 Agentic turn limit reached. Continue?
16 {/snippet}
17
18 {#snippet actions()}
19 <Button size="sm" onclick={() => onDecision(true)}>Continue</Button>
20
21 <Button
22 variant="destructive"
23 size="sm"
24 class="text-destructive hover:text-destructive"
25 onclick={() => onDecision(false)}
26 >
27 Stop
28 </Button>
29 {/snippet}
30 </ChatMessageActionCard>