Skip to content

Commit

Permalink
[Fix] image prompt filtered models incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
amidabuddha committed Feb 1, 2025
1 parent 81db60a commit d81e7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console_gpt/menus/command_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def command_handler(model_title, model_name, user_input, conversation, cached) -
return user_input
return "continue"
case "image":
if model_title.lower().startswith("mistral", "o1-mini", "o1-preview"):
if model_title.lower().startswith(('mistral', 'o1-mini', 'o1-preview')):
custom_print(
"error",
f"Cannot upload images unless you're using vision supported model. Current model: {model_name}!",
Expand Down

0 comments on commit d81e7ad

Please sign in to comment.