Skip to content

Commit

Permalink
fix: allow interaction with multimodal model when image is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
aaclause committed Apr 17, 2024
1 parent ddf1188 commit b3a31b9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions addon/globalPlugins/openai/maindialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,17 +1099,6 @@ def onSubmit(self, evt):
)
return

if (
model.vision
and not self.conversationCheckBox.IsChecked()
and not self.pathList
):
gui.messageBox(
_("Please use the Image Description button and select one or more images. Otherwise, please select another model."),
_("No image provided"),
wx.OK | wx.ICON_ERROR
)
return
if not model.vision and self.pathList:
visionModels = [model.id for model in self._models if model.vision]
gui.messageBox(
Expand Down

0 comments on commit b3a31b9

Please sign in to comment.