char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
fa4ec4590
char/aliceai-t5-moe
1< script lang ="ts "> 2import ChatFormInputRich from '$lib/components/app/chat/ChatForm/ChatFormInput/ChatFormInputRich.svelte' ; 3import { untrack } from 'svelte' ; 4 5interface Props { 6value ?: string ; 7} 8 9let { value : initial = '' } : Props = $props (); 10 11let value = $state ( untrack (() => initial )); 12let inputRef: ChatFormInputRich | undefined = $state ( undefined ); 13 14export function getValue () { 15return value ; 16} 17 18export function getCaretOffset () { 19return inputRef ?. getCaretOffset (); 20} 21 22export function setCaretOffset ( offset: number ) { 23inputRef ?. setCaretOffset ( offset ); 24} 25</ script > 26 27< ChatFormInputRich bind:this = { inputRef } bind:value />