From 948ccbcc065e9ece5486897ecd2c00e5785f3f5e Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Thu, 16 Nov 2023 07:42:46 -0800 Subject: [PATCH] add a few extra metadata recognizers --- src/wwwroot/js/genpage/main.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/wwwroot/js/genpage/main.js b/src/wwwroot/js/genpage/main.js index e9e68b69..bb976694 100644 --- a/src/wwwroot/js/genpage/main.js +++ b/src/wwwroot/js/genpage/main.js @@ -1118,7 +1118,7 @@ function remapMetadataKeys(metadata, keymap) { return metadata; } -const imageMetadataKeys = ['prompt', 'Prompt', 'parameters', 'Parameters', 'userComment', 'UserComment']; +const imageMetadataKeys = ['prompt', 'Prompt', 'parameters', 'Parameters', 'userComment', 'UserComment', 'model', 'Model']; function imageInputHandler() { let imageArea = getRequiredElementById('current_image'); @@ -1159,6 +1159,12 @@ function imageInputHandler() { else if (parsed.userComment) { metadata = parsed.userComment; } + else if (parsed.model) { + metadata = parsed.model; + } + else if (parsed.Model) { + metadata = parsed.Model; + } } if (metadata instanceof Uint8Array) { let prefix = metadata.slice(0, 8);