]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/blob
356512ecb73dd8afa4fad284dcca4e855c8092c4
[pkg/ggml/sources/llama.cpp] /
1 <script lang="ts">
2 import { fade } from 'svelte/transition';
3 import type { UseProcessingStateReturn } from '$lib/hooks/use-processing-state.svelte';
4
5 interface Props {
6 modelLoadingText: string | null;
7 processingState: UseProcessingStateReturn;
8 position: 'top' | 'bottom';
9 }
10
11 let { modelLoadingText, processingState, position }: 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>