-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to customize the default prompt text to describe an image #23
Possibility to customize the default prompt text to describe an image #23
Conversation
Thanks for the PR @Nael-Sayegh! I suggest the following key/attribute renamings:
|
self.default_prompt = imageGroup.addItem( | ||
wx.CheckBox( | ||
imageBox, | ||
label=_("Use a default custom text in the prompt to describe images") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label=_("Use a default custom text in the prompt to describe images") | |
label=_("Customize default text &prompt") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with this modification because it's not clear enough for the user. It should be specified that it is for the image description.
self.default_prompt.SetValue(config.conf["OpenAI"]["images"]["default_prompt"]) | ||
|
||
self.default_prompt_text = imageGroup.addLabeledControl( | ||
_("Custom text"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_("Custom text"), | |
_("Default &text prompt:"), |
@@ -380,6 +379,10 @@ def __init__( | |||
): | |||
if not client or not conf: | |||
return | |||
if config.conf["OpenAI"]["images"]["default_prompt"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if config.conf["OpenAI"]["images"]["default_prompt"]: | |
if conf["images"]["useCustomDefaultPrompt"]: |
… key and variable names to be more precise.
Hello, |
270f564
to
d731cf2
Compare
Co-authored-by: André-Abush Clause <dev@andreabc.net>
Co-authored-by: André-Abush Clause <dev@andreabc.net>
Co-authored-by: André-Abush Clause <dev@andreabc.net>
Co-authored-by: André-Abush Clause <dev@andreabc.net>
Co-authored-by: André-Abush Clause <dev@andreabc.net>
Adding a checkbox to the settings panel to change the default prompt text for image description.
Fixes #17