[fix] ooba template
This commit is contained in:
@@ -105,12 +105,7 @@
|
|||||||
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.custom_token_bans} />
|
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.custom_token_bans} />
|
||||||
<span class="text-textcolor">grammar_string</span>
|
<span class="text-textcolor">grammar_string</span>
|
||||||
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.grammar_string} />
|
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.grammar_string} />
|
||||||
|
|
||||||
<span class="text-textcolor">custom_token_bans</span>
|
|
||||||
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.custom_token_bans} />
|
|
||||||
<span class="text-textcolor">grammar_string</span>
|
|
||||||
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.grammar_string} />
|
|
||||||
|
|
||||||
<span class="text-textcolor">temperature_last</span>
|
<span class="text-textcolor">temperature_last</span>
|
||||||
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.temperature_last} boolMode />
|
<OptionalInput marginBottom={true} bind:value={$DataBase.reverseProxyOobaArgs.temperature_last} boolMode />
|
||||||
<span class="text-textcolor">do_sample</span>
|
<span class="text-textcolor">do_sample</span>
|
||||||
|
|||||||
@@ -683,6 +683,8 @@ export interface botPreset{
|
|||||||
NAIappendName?: boolean
|
NAIappendName?: boolean
|
||||||
localStopStrings?: string[]
|
localStopStrings?: string[]
|
||||||
customProxyRequestModel?: string
|
customProxyRequestModel?: string
|
||||||
|
reverseProxyOobaArgs?: OobaChatCompletionRequestParams
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -855,6 +857,9 @@ export const presetTemplate:botPreset = {
|
|||||||
bias: [],
|
bias: [],
|
||||||
ooba: cloneDeep(defaultOoba),
|
ooba: cloneDeep(defaultOoba),
|
||||||
ainconfig: cloneDeep(defaultAIN),
|
ainconfig: cloneDeep(defaultAIN),
|
||||||
|
reverseProxyOobaArgs: {
|
||||||
|
mode: 'instruct'
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -910,6 +915,7 @@ export function saveCurrentPreset(){
|
|||||||
localStopStrings: db.localStopStrings,
|
localStopStrings: db.localStopStrings,
|
||||||
autoSuggestPrompt: db.autoSuggestPrompt,
|
autoSuggestPrompt: db.autoSuggestPrompt,
|
||||||
customProxyRequestModel: db.customProxyRequestModel,
|
customProxyRequestModel: db.customProxyRequestModel,
|
||||||
|
reverseProxyOobaArgs: cloneDeep(db.reverseProxyOobaArgs) ?? null
|
||||||
}
|
}
|
||||||
db.botPresets = pres
|
db.botPresets = pres
|
||||||
setDatabase(db)
|
setDatabase(db)
|
||||||
@@ -975,6 +981,9 @@ export function setPreset(db:Database, newPres: botPreset){
|
|||||||
db.NAIsettings.mirostat_lr ??= 1
|
db.NAIsettings.mirostat_lr ??= 1
|
||||||
db.localStopStrings = newPres.localStopStrings
|
db.localStopStrings = newPres.localStopStrings
|
||||||
db.customProxyRequestModel = newPres.customProxyRequestModel ?? ''
|
db.customProxyRequestModel = newPres.customProxyRequestModel ?? ''
|
||||||
|
db.reverseProxyOobaArgs = cloneDeep(newPres.reverseProxyOobaArgs) ?? {
|
||||||
|
mode: 'instruct'
|
||||||
|
}
|
||||||
return db
|
return db
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user