diff --git a/src/lang/en.ts b/src/lang/en.ts index 3ec746a2..b0c9be33 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -171,7 +171,8 @@ export const languageEnglish = { translatorPrompt: "The prompt that is used for translation. if it is blank, it will use the default prompt. you can also use ChatML formating with {{slot}} for the dest language, {{solt::content}} for the content, and {{slot::tnote}} for the translator note.", translateBeforeHTMLFormatting: "If enabled, it will translate the text before Regex scripts and HTML formatting. this could make the token lesser but could break the formatting.", autoTranslateCachedOnly: "If enabled, it will automatically translate only the text that the user has translated previously.", - APIPool: "If enabled, it will connect to RisuAI API Pool. Every user which API pool is enabled, the API key will be shared if it used for free, rate-limited models, making it user to make more request of rate-limited models by using other's API key that didn't used much." + presetChain: "If it is not blank, the preset will be changed and applied randomly every time when user sends a message in the preset list in this input. preset list should be seperated by comma, for example, `preset1,preset2`.", + legacyMediaFindings: "If enabled, it will use the old method to find media assets, without using the additional search algorithm.", }, setup: { chooseProvider: "Choose AI Provider", @@ -819,5 +820,6 @@ export const languageEnglish = { customFlags: "Custom Flags", enableCustomFlags: "Enable Custom Flags", googleCloudTokenization: "Google Cloud Tokenization", - APIPool: "API Pool" + presetChain: "Preset Chain", + legacyMediaFindings: "Legacy Media Findings", } \ No newline at end of file diff --git a/src/lib/Setting/Pages/AdvancedSettings.svelte b/src/lib/Setting/Pages/AdvancedSettings.svelte index 3827f81d..3aaae297 100644 --- a/src/lib/Setting/Pages/AdvancedSettings.svelte +++ b/src/lib/Setting/Pages/AdvancedSettings.svelte @@ -41,6 +41,9 @@ Kei Server URL +{language.presetChain} + + {language.requestretrys} @@ -78,6 +81,9 @@
+
+ +
diff --git a/src/ts/globalApi.svelte.ts b/src/ts/globalApi.svelte.ts index cbf3c347..1e971a5e 100644 --- a/src/ts/globalApi.svelte.ts +++ b/src/ts/globalApi.svelte.ts @@ -906,7 +906,6 @@ async function fetchWithProxy(url: string, arg: GlobalFetchArgs): Promise { + let d:Int16Array[] = [] + + for(let i=0;i { + return v.name === ele + }) + + if(findId === -1){ + alertToast(`Cannot find preset: ${ele}`) + } + else{ + changeToPreset(findId, true) + } + } + if(connectionOpen){ chatProcessStage.set(4) const peerSafe = await peerSafeCheck() diff --git a/src/ts/storage/database.svelte.ts b/src/ts/storage/database.svelte.ts index ee4aaa26..1e691874 100644 --- a/src/ts/storage/database.svelte.ts +++ b/src/ts/storage/database.svelte.ts @@ -854,7 +854,8 @@ export interface Database{ customFlags: LLMFlags[] enableCustomFlags: boolean googleClaudeTokenizing: boolean - risuPool: boolean + presetChain: string + legacyMediaFindings?:boolean } interface SeparateParameters{