]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
657157956426e33466d18cbc58c3b30b520ec2ef
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 import type { UseProcessingStateReturn } from '$lib/hooks/use-processing-state.svelte';
3 import { fade } from 'svelte/transition';
4
5 interface Props {
6 modelLoadingText: string | null;
7 processingState: UseProcessingStateReturn;
8 position: 'top' | 'bottom';
9 }
10
11 let { modelLoadingText, position, processingState }: Props = $props();
12
13 const marginClass = position === 'top' ? 'mt-6' : 'mt-4';
14 </script>
15
16 <div class="{marginClass} w-full max-w-3xl" in:fade>
17 <div class="flex flex-col items-start gap-2">
18 <span class="shimmer-text text-sm">
19 {modelLoadingText ??
20 processingState.getPromptProgressText() ??
21 processingState.getProcessingMessage() ??
22 'Processing...'}
23 </span>
24 </div>
25 </div>