Add openrouter provider
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
import OobaSettings from "./OobaSettings.svelte";
|
||||
import Arcodion from "src/lib/UI/Arcodion.svelte";
|
||||
import { startsWith } from "lodash";
|
||||
import OpenrouterSettings from "./OpenrouterSettings.svelte";
|
||||
|
||||
let tokens = {
|
||||
mainPrompt: 0,
|
||||
@@ -261,14 +262,6 @@
|
||||
<Check bind:check={$DataBase.useStreaming} name={`Response ${language.streaming}`}/>
|
||||
</div>
|
||||
{/if}
|
||||
{#if $DataBase.aiModel.startsWith('openrouter')}
|
||||
<div class="flex items-center mb-4">
|
||||
<Check bind:check={$DataBase.openrouterFallback} name={language.openrouterFallback}/>
|
||||
</div>
|
||||
<div class="flex items-center mb-4">
|
||||
<Check bind:check={$DataBase.openrouterMiddleOut} name={language.openrouterMiddleOut}/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if $DataBase.aiModel === 'custom' || $DataBase.subModel === 'custom'}
|
||||
<span class="text-textcolor mt-2">{language.plugin}</span>
|
||||
@@ -573,6 +566,10 @@
|
||||
<OobaSettings instructionMode={$DataBase.aiModel === 'ooba'} />
|
||||
{/if}
|
||||
|
||||
{#if $DataBase.aiModel.startsWith('openrouter')}
|
||||
<OpenrouterSettings />
|
||||
{/if}
|
||||
|
||||
|
||||
{#if advancedBotSettings}
|
||||
{#if !$DataBase.promptTemplate}
|
||||
|
||||
Reference in New Issue
Block a user