Change Reverse proxy name to Custom and add additionalParams

This commit is contained in:
kwaroran
2024-03-20 21:02:34 +09:00
parent ef811b5b57
commit 5bede2b90a
14 changed files with 136 additions and 12 deletions

View File

@@ -67,7 +67,7 @@
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('claude-1.0')}}>claude-v1.0</button>
{/if}
</Arcodion>
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('reverse_proxy')}}>Reverse Proxy</button>
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('reverse_proxy')}}>Custom (OpenAI-compatible)</button>
{#if $DataBase.tpo && isTauri}
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={async () => {
const selected = await open({
@@ -129,6 +129,7 @@
{/each}
{/await}
</Arcodion>
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('oaicomp')}}>Custom (OpenAI-compatible)</button>
{#if showUnrec}
<Arcodion name="WebLLM Local">
<button class="hover:bg-selected px-6 py-2 text-lg" on:click={() => {changeModel('hf:::Xenova/opt-350m')}}>opt-350m</button>

View File

@@ -7,6 +7,7 @@
import { DataBase } from "src/ts/storage/database";
import RealmLicense from "./RealmLicense.svelte";
import MultiLangDisplay from "../GUI/MultiLangDisplay.svelte";
import { tooltip } from "src/ts/gui/tooltip";
export let openedData:hubType
@@ -35,7 +36,7 @@
{/each}
</div>
<div class="flex flex-wrap w-full flex-row gap-1 mt-2">
<span class="text-textcolor2">
<span class="text-textcolor2" use:tooltip={language.popularityLevelDesc}>
{language.popularityLevel.replace('{}', openedData.download.toString())}
</span>
<div class="border-l-selected border-l ml-1 mr-1"></div>

View File

@@ -15,6 +15,12 @@
if( today.getMonth() === 3 && today.getDate() === 1){
specialDay = 'aprilFool'
}
if( today.getMonth() === 3 && today.getDate() === 14){
specialDay = 'anniversary'
}
if( today.getMonth() === 9 && today.getDate() === 31){
specialDay = 'halloween'
}
let iconAnimation = 0
let clicks = 0
let score = 0