mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add json extension to exported oai and LogitBias presets
This commit is contained in:
@ -3250,7 +3250,8 @@ async function onExportPresetClick() {
|
|||||||
delete preset.proxy_password;
|
delete preset.proxy_password;
|
||||||
|
|
||||||
const presetJsonString = JSON.stringify(preset, null, 4);
|
const presetJsonString = JSON.stringify(preset, null, 4);
|
||||||
download(presetJsonString, oai_settings.preset_settings_openai, 'application/json');
|
const presetFileName = `${oai_settings.preset_settings_openai}.json`;
|
||||||
|
download(presetJsonString, presetFileName, 'application/json');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onLogitBiasPresetImportFileChange(e) {
|
async function onLogitBiasPresetImportFileChange(e) {
|
||||||
@ -3298,7 +3299,8 @@ function onLogitBiasPresetExportClick() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const presetJsonString = JSON.stringify(oai_settings.bias_presets[oai_settings.bias_preset_selected], null, 4);
|
const presetJsonString = JSON.stringify(oai_settings.bias_presets[oai_settings.bias_preset_selected], null, 4);
|
||||||
download(presetJsonString, oai_settings.bias_preset_selected, 'application/json');
|
const presetFileName = `${oai_settings.bias_preset_selected}.json`;
|
||||||
|
download(presetJsonString, presetFileName, 'application/json');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onDeletePresetClick() {
|
async function onDeletePresetClick() {
|
||||||
|
Reference in New Issue
Block a user