Skip to content

Commit

Permalink
Enhance last used model memory
Browse files Browse the repository at this point in the history
  • Loading branch information
AAClause committed May 18, 2024
1 parent dee6ec4 commit 44bffcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/globalPlugins/openai/maindialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 44bffcf

Please sign in to comment.