From 44bffcf87bc1b37eaad349ac4ce6d9e970e1a769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9-Abush=20Clause?= Date: Sat, 18 May 2024 15:00:19 +0200 Subject: [PATCH] Enhance last used model memory --- addon/globalPlugins/openai/maindialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/globalPlugins/openai/maindialog.py b/addon/globalPlugins/openai/maindialog.py index f3b6127..737f1d4 100644 --- a/addon/globalPlugins/openai/maindialog.py +++ b/addon/globalPlugins/openai/maindialog.py @@ -183,7 +183,6 @@ def run(self): block.prompt = prompt model = wnd.getCurrentModel() block.model = model.id - conf["modelVision" if model.vision else "model"] = model.id stream = conf["stream"] debug = conf["debug"] maxTokens = wnd.maxTokensSpinCtrl.GetValue() @@ -237,6 +236,7 @@ def run(self): msg = _("Uploading %d images, please wait...") % nbImages else: msg = PROCESSING_MSG + conf["modelVision" if nbImages else "model"] = model.id wnd.message(msg) if conf["chatFeedback"]["sndTaskInProgress"]: winsound.PlaySound(SND_PROGRESS, winsound.SND_ASYNC|winsound.SND_LOOP)