Fix a bug where the metadata output format wouldn't get sent to the backend

This commit is contained in:
cmdr2 2022-12-14 10:18:01 +05:30
parent 6cd0b530c5
commit cb81e2aacd
2 changed files with 6 additions and 1 deletions

View File

@ -894,6 +894,7 @@ function getCurrentUserRequest() {
show_only_filtered_image: showOnlyFilteredImageField.checked,
output_format: outputFormatField.value,
output_quality: parseInt(outputQualityField.value),
metadata_output_format: document.querySelector('#metadata_output_format').value,
original_prompt: promptField.value,
active_tags: (activeTags.map(x => x.name))
}

View File

@ -57,11 +57,15 @@ var PARAMETERS = [
id: "metadata_output_format",
type: ParameterType.select,
label: "Metadata format",
note: "the metadata will be saved to disk in this format",
note: "will be saved to disk in this format",
default: "txt",
options: [
{
value: "txt",
label: "txt"
},
{
value: "json",
label: "json"
}
],