Merge branch 'main' of https://github.com/kwaroran/RisuAI
This commit is contained in:
@@ -507,6 +507,7 @@ export const languageEnglish = {
|
|||||||
openrouterMiddleOut: "Openrouter Middle Out",
|
openrouterMiddleOut: "Openrouter Middle Out",
|
||||||
geminiApiKey: "Gemini API Key",
|
geminiApiKey: "Gemini API Key",
|
||||||
removePunctuationHypa: "Memory Punctuation Removal",
|
removePunctuationHypa: "Memory Punctuation Removal",
|
||||||
|
memoryLimitThickness: "Memory Limit Thickness",
|
||||||
inputCardPassword: "Input Card Password",
|
inputCardPassword: "Input Card Password",
|
||||||
ccv2Desc: 'Character Card V2 is is a format widely used in chatbot programs.',
|
ccv2Desc: 'Character Card V2 is is a format widely used in chatbot programs.',
|
||||||
rccDesc: 'Risu Refined Character Card is a format with additional features like password, integrity check and etc.',
|
rccDesc: 'Risu Refined Character Card is a format with additional features like password, integrity check and etc.',
|
||||||
|
|||||||
@@ -428,4 +428,5 @@ export const languageKorean = {
|
|||||||
genTimes: "생성 횟수",
|
genTimes: "생성 횟수",
|
||||||
template: "템플릿",
|
template: "템플릿",
|
||||||
editTranslationDisplay: "번역문 수정",
|
editTranslationDisplay: "번역문 수정",
|
||||||
|
memoryLimitThickness: "기억 한계선 두께",
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
|
|
||||||
$: displaya(message)
|
$: displaya(message)
|
||||||
</script>
|
</script>
|
||||||
<div class="flex max-w-full justify-center risu-chat" class:bgc={isLastMemory}>
|
<div class="flex max-w-full justify-center risu-chat" style={isLastMemory ? `border-top:${$DataBase.memoryLimitThickness}px solid rgba(98, 114, 164, 0.7);` : ''}>
|
||||||
<div class="text-textcolor mt-1 ml-4 mr-4 mb-1 p-2 bg-transparent flex-grow border-t-gray-900 border-opacity-30 border-transparent flexium items-start max-w-full" >
|
<div class="text-textcolor mt-1 ml-4 mr-4 mb-1 p-2 bg-transparent flex-grow border-t-gray-900 border-opacity-30 border-transparent flexium items-start max-w-full" >
|
||||||
{#await img}
|
{#await img}
|
||||||
<div class="shadow-lg bg-textcolor2 mt-2" style={`height:${$DataBase.iconsize * 3.5 / 100}rem;width:${$DataBase.iconsize * 3.5 / 100}rem;min-width:${$DataBase.iconsize * 3.5 / 100}rem`}
|
<div class="shadow-lg bg-textcolor2 mt-2" style={`height:${$DataBase.iconsize * 3.5 / 100}rem;width:${$DataBase.iconsize * 3.5 / 100}rem;min-width:${$DataBase.iconsize * 3.5 / 100}rem`}
|
||||||
|
|||||||
@@ -88,6 +88,12 @@
|
|||||||
<SliderInput min={0} max={1} step={0.05} bind:value={$DataBase.animationSpeed} on:change={updateAnimationSpeed} />
|
<SliderInput min={0} max={1} step={0.05} bind:value={$DataBase.animationSpeed} on:change={updateAnimationSpeed} />
|
||||||
<span class="text-textcolor2 mb-6 text-sm">{(`${($DataBase.animationSpeed).toFixed(2)}s`)}</span>
|
<span class="text-textcolor2 mb-6 text-sm">{(`${($DataBase.animationSpeed).toFixed(2)}s`)}</span>
|
||||||
|
|
||||||
|
{#if $DataBase.showMemoryLimit}
|
||||||
|
<span class="text-textcolor">{language.memoryLimitThickness}</span>
|
||||||
|
<SliderInput min={1} max={500} step={1} bind:value={$DataBase.memoryLimitThickness} />
|
||||||
|
<span class="text-textcolor2 mb-6 text-sm">{($DataBase.memoryLimitThickness)}px</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="flex items-center mt-2">
|
<div class="flex items-center mt-2">
|
||||||
<Check bind:check={$DataBase.fullScreen} onChange={changeFullscreen} name={language.fullscreen}/>
|
<Check bind:check={$DataBase.fullScreen} onChange={changeFullscreen} name={language.fullscreen}/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -365,6 +365,7 @@ export function setDatabase(data:Database){
|
|||||||
data.openrouterFallback ??= true
|
data.openrouterFallback ??= true
|
||||||
data.openrouterMiddleOut ??= false
|
data.openrouterMiddleOut ??= false
|
||||||
data.removePunctuationHypa ??= true
|
data.removePunctuationHypa ??= true
|
||||||
|
data.memoryLimitThickness ??= 1
|
||||||
|
|
||||||
changeLanguage(data.language)
|
changeLanguage(data.language)
|
||||||
DataBase.set(data)
|
DataBase.set(data)
|
||||||
@@ -583,6 +584,7 @@ export interface Database{
|
|||||||
claudeAws:boolean
|
claudeAws:boolean
|
||||||
lastPatchNoteCheckVersion?:string,
|
lastPatchNoteCheckVersion?:string,
|
||||||
removePunctuationHypa?:boolean
|
removePunctuationHypa?:boolean
|
||||||
|
memoryLimitThickness?:number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface customscript{
|
export interface customscript{
|
||||||
|
|||||||
Reference in New Issue
Block a user