From cde51513da4d5a455bbfa09b466df7e2a277c826 Mon Sep 17 00:00:00 2001 From: RossAsscends <124905043+RossAscends@users.noreply.github.com> Date: Thu, 23 Mar 2023 01:08:21 +0900 Subject: [PATCH 1/2] caption extension now adds the caption to the img title attribute --- public/script.js | 1 + public/scripts/extensions/caption/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/public/script.js b/public/script.js index f068ae83a..5be90563e 100644 --- a/public/script.js +++ b/public/script.js @@ -724,6 +724,7 @@ function appendImageToMessage(mes, messageElement) { if (mes.extra?.image) { const image = document.createElement("img"); image.src = mes.extra?.image; + image.title = mes.title; image.classList.add("img_extra"); messageElement.find(".mes_text").prepend(image); } diff --git a/public/scripts/extensions/caption/index.js b/public/scripts/extensions/caption/index.js index 96754c4fc..eaa1fe86a 100644 --- a/public/scripts/extensions/caption/index.js +++ b/public/scripts/extensions/caption/index.js @@ -45,6 +45,7 @@ async function sendCaptionedMessage(caption, image) { send_date: Date.now(), mes: messageText, extra: { image: image }, + title: caption }; context.chat.push(message); context.addOneMessage(message); From dc79f678c36082f0efa98ed1f373c5a9a0590caf Mon Sep 17 00:00:00 2001 From: RossAsscends <124905043+RossAscends@users.noreply.github.com> Date: Thu, 23 Mar 2023 02:08:38 +0900 Subject: [PATCH 2/2] moved location of some AI config toggles moved various API presets into the sliders tab -so we can see what the presets are doing in real time. --- public/index.html | 105 +++++++++++++++++++++++++--------------------- public/script.js | 5 +++ 2 files changed, 63 insertions(+), 47 deletions(-) diff --git a/public/index.html b/public/index.html index 1564d77c6..00c1febd7 100644 --- a/public/index.html +++ b/public/index.html @@ -107,16 +107,6 @@
Not connected
-
-

Kobold Presets - - ? - -

- -