Migrate to svelte 5

This commit is contained in:
kwaroran
2024-10-23 02:31:37 +09:00
parent e434c7ab96
commit c7330719ad
120 changed files with 2398 additions and 2033 deletions

View File

@@ -2,8 +2,8 @@
import { language } from "src/lang";
import { Template } from '@huggingface/jinja';
import TextAreaInput from "../UI/GUI/TextAreaInput.svelte";
let input = "";
let json = JSON.stringify({
let input = $state("");
let json = $state(JSON.stringify({
"messages": [{
"role": "user",
"content": "Hello, I'm a user!"
@@ -13,8 +13,8 @@
}],
"eos_token": "",
"bos_token": ""
}, null, 4)
let output = "";
}, null, 4))
let output = $state("");
const onInput = () => {
try {
const template = new Template(input);