Add conditional rendering for chat compression based on server type
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import Button from "src/lib/UI/GUI/Button.svelte";
|
||||
import { DBState } from 'src/ts/stores.svelte';
|
||||
import { alertMd } from "src/ts/alert";
|
||||
import { getRequestLog, isTauri } from "src/ts/globalApi.svelte";
|
||||
import { getRequestLog, isNodeServer, isTauri } from "src/ts/globalApi.svelte";
|
||||
import NumberInput from "src/lib/UI/GUI/NumberInput.svelte";
|
||||
import TextInput from "src/lib/UI/GUI/TextInput.svelte";
|
||||
import SelectInput from "src/lib/UI/GUI/SelectInput.svelte";
|
||||
@@ -165,12 +165,15 @@
|
||||
<Help key="experimental"/><Help key="experimental"/>
|
||||
</Check>
|
||||
</div>
|
||||
|
||||
{#if !isNodeServer}
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={DBState.db.chatCompression} name={language.experimentalChatCompression}>
|
||||
<Help key="experimental"/><Help key="experimental"/>
|
||||
</Check>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if DBState.db.showUnrecommended}
|
||||
<div class="flex items-center mt-4">
|
||||
<Check bind:check={DBState.db.chainOfThought} name={language.cot}>
|
||||
|
||||
Reference in New Issue
Block a user