Add new language keys and checkboxes for openrouter fallback and middle out

This commit is contained in:
kwaroran
2024-01-08 09:10:52 +09:00
parent 62a6577368
commit a490dbde47
2 changed files with 8 additions and 0 deletions

View File

@@ -488,4 +488,6 @@ export const languageEnglish = {
autoRemoveThoughtTag: "Remove Thought Tag",
customChainOfThought: "Custom Chain of Thoughts",
maxThoughtTagDepth: "Max Thought Tag Depth",
openrouterFallback: "Openrouter Fallback",
openrouterMiddleOut: "Openrouter Middle Out",
}

View File

@@ -319,6 +319,12 @@
<span class="text-textcolor">Top K</span>
<SliderInput min={0} max={100} step={1} bind:value={$DataBase.top_k}/>
<span class="text-textcolor2 mb-6 text-sm">{($DataBase.top_k).toFixed(0)}</span>
<div class="flex items-center mt-4">
<Check bind:check={$DataBase.openrouterFallback} name={language.openrouterFallback}/>
</div>
<div class="flex items-center mt-4">
<Check bind:check={$DataBase.openrouterMiddleOut} name={language.openrouterMiddleOut}/>
</div>
{/if}
{#if $DataBase.aiModel === 'textgen_webui' || $DataBase.aiModel === 'mancer' || $DataBase.aiModel.startsWith('local_')}