Change DataBase inside svelte to DBState for performance
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
import TextAreaInput from "src/lib/UI/GUI/TextAreaInput.svelte";
|
||||
import SelectInput from "src/lib/UI/GUI/SelectInput.svelte";
|
||||
import OptionInput from "src/lib/UI/GUI/OptionInput.svelte";
|
||||
import { DataBase } from "src/ts/storage/database";
|
||||
import { DBState } from "src/ts/storage/database.svelte";
|
||||
import { language } from "src/lang";
|
||||
</script>
|
||||
|
||||
<span class="text-textcolor">{language.chatFormating}</span>
|
||||
<SelectInput bind:value={$DataBase.instructChatTemplate}>
|
||||
<SelectInput bind:value={DBState.db.instructChatTemplate}>
|
||||
<OptionInput value="chatml">ChatML</OptionInput>
|
||||
<OptionInput value="llama3">Llama3</OptionInput>
|
||||
<OptionInput value="gpt2">GPT2</OptionInput>
|
||||
@@ -19,7 +19,7 @@
|
||||
<OptionInput value="jinja">Custom (Jinja)</OptionInput>
|
||||
</SelectInput>
|
||||
|
||||
{#if $DataBase.instructChatTemplate === 'jinja'}
|
||||
{#if DBState.db.instructChatTemplate === 'jinja'}
|
||||
<span class="text-textcolor">Jinja Template</span>
|
||||
<TextAreaInput fullwidth autocomplete="off" bind:value={$DataBase.JinjaTemplate} />
|
||||
<TextAreaInput fullwidth autocomplete="off" bind:value={DBState.db.JinjaTemplate} />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user