Skip to content

Commit 44bffcf

Browse files
committed
Enhance last used model memory
1 parent dee6ec4 commit 44bffcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addon/globalPlugins/openai/maindialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def run(self):
183183
block.prompt = prompt
184184
model = wnd.getCurrentModel()
185185
block.model = model.id
186-
conf["modelVision" if model.vision else "model"] = model.id
187186
stream = conf["stream"]
188187
debug = conf["debug"]
189188
maxTokens = wnd.maxTokensSpinCtrl.GetValue()
@@ -237,6 +236,7 @@ def run(self):
237236
msg = _("Uploading %d images, please wait...") % nbImages
238237
else:
239238
msg = PROCESSING_MSG
239+
conf["modelVision" if nbImages else "model"] = model.id
240240
wnd.message(msg)
241241
if conf["chatFeedback"]["sndTaskInProgress"]:
242242
winsound.PlaySound(SND_PROGRESS, winsound.SND_ASYNC|winsound.SND_LOOP)

0 commit comments

Comments
 (0)