feat: set to default settings when selecting HypaV3 on OtherBotSettings
This commit is contained in:
@@ -467,6 +467,15 @@
|
|||||||
DBState.db.hypav2 = false
|
DBState.db.hypav2 = false
|
||||||
DBState.db.hanuraiEnable = false
|
DBState.db.hanuraiEnable = false
|
||||||
DBState.db.hypaV3 = true
|
DBState.db.hypaV3 = true
|
||||||
|
DBState.db.hypaV3Settings.memoryTokensRatio = 0.2
|
||||||
|
DBState.db.hypaV3Settings.extraSummarizationRatio = 0
|
||||||
|
DBState.db.hypaV3Settings.maxChatsPerSummary = 4
|
||||||
|
DBState.db.hypaV3Settings.recentMemoryRatio = 0.4
|
||||||
|
DBState.db.hypaV3Settings.similarMemoryRatio = 0.4
|
||||||
|
DBState.db.hypaV3Settings.enableSimilarityCorrection = false
|
||||||
|
DBState.db.hypaV3Settings.preserveOrphanedMemory = false
|
||||||
|
DBState.db.hypaV3Settings.processRegexScript = false
|
||||||
|
DBState.db.hypaV3Settings.doNotSummarizeUserChat = false
|
||||||
} else {
|
} else {
|
||||||
DBState.db.supaModelType = 'none'
|
DBState.db.supaModelType = 'none'
|
||||||
DBState.db.memoryAlgorithmType = 'none'
|
DBState.db.memoryAlgorithmType = 'none'
|
||||||
@@ -514,10 +523,6 @@
|
|||||||
<OptionInput value="distilbart">distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
<OptionInput value="distilbart">distilbart-cnn-6-6 (Free/Local)</OptionInput>
|
||||||
<OptionInput value="subModel">{language.submodel}</OptionInput>
|
<OptionInput value="subModel">{language.submodel}</OptionInput>
|
||||||
</SelectInput>
|
</SelectInput>
|
||||||
{#if DBState.db.supaModelType === "instruct35"}
|
|
||||||
<span class="text-textcolor">OpenAI API Key</span>
|
|
||||||
<TextInput marginBottom size="sm" bind:value={DBState.db.supaMemoryKey} />
|
|
||||||
{/if}
|
|
||||||
<span class="text-textcolor">{language.summarizationPrompt} <Help key="summarizationPrompt"/></span>
|
<span class="text-textcolor">{language.summarizationPrompt} <Help key="summarizationPrompt"/></span>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<TextAreaInput size="sm" placeholder="Leave it blank to use default" bind:value={DBState.db.supaMemoryPrompt} />
|
<TextAreaInput size="sm" placeholder="Leave it blank to use default" bind:value={DBState.db.supaMemoryPrompt} />
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ export function setDatabase(data:Database){
|
|||||||
data.reasoningEffort ??= 0
|
data.reasoningEffort ??= 0
|
||||||
data.hypaV3Settings = {
|
data.hypaV3Settings = {
|
||||||
memoryTokensRatio: data.hypaV3Settings?.memoryTokensRatio ?? 0.2,
|
memoryTokensRatio: data.hypaV3Settings?.memoryTokensRatio ?? 0.2,
|
||||||
extraSummarizationRatio: data.hypaV3Settings?.extraSummarizationRatio ?? 0.2,
|
extraSummarizationRatio: data.hypaV3Settings?.extraSummarizationRatio ?? 0,
|
||||||
maxChatsPerSummary: data.hypaV3Settings?.maxChatsPerSummary ?? 4,
|
maxChatsPerSummary: data.hypaV3Settings?.maxChatsPerSummary ?? 4,
|
||||||
recentMemoryRatio: data.hypaV3Settings?.recentMemoryRatio ?? 0.4,
|
recentMemoryRatio: data.hypaV3Settings?.recentMemoryRatio ?? 0.4,
|
||||||
similarMemoryRatio: data.hypaV3Settings?.similarMemoryRatio ?? 0.4,
|
similarMemoryRatio: data.hypaV3Settings?.similarMemoryRatio ?? 0.4,
|
||||||
|
|||||||
Reference in New Issue
Block a user