From 09af873bcc8954750ba108991367b111a2f81e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Blu=CC=88m?= Date: Wed, 29 Mar 2023 09:51:27 +0200 Subject: [PATCH] fix model selection: send selected frontend along with request --- bin/web/views/index.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/web/views/index.ejs b/bin/web/views/index.ejs index ffbddee..00a5b5a 100644 --- a/bin/web/views/index.ejs +++ b/bin/web/views/index.ejs @@ -297,6 +297,7 @@ ${fields} if (input.textContent) { //config.prompt = input.textContent.replaceAll("\n", "\\n"); config.prompt = input.textContent + config.model = form.querySelector('#model option[selected]').value config.id = "TS-" + Date.now() + "-" + Math.floor(Math.random() * 100000) document.querySelector("#prompt-run").classList.add("hidden") document.querySelector("#prompt-cancel").classList.remove("hidden")