Skip to content
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

the hint field value is not UTF-8 encoded #27

Open
George-br opened this issue May 18, 2024 · 5 comments
Open

the hint field value is not UTF-8 encoded #27

George-br opened this issue May 18, 2024 · 5 comments

Comments

@George-br
Copy link
Contributor

Hello!

if you write a prompt in the application settings in a language other than English, the settings cannot be saved

@cartertemm
Copy link
Owner

Is this on the latest version? I tried using the following prompt, but the settings are saving without an issue, and I don't see anything in the log:

"描述这张图片的细节尽可能详细。您的回答应该用中文写成。"

@George-br
Copy link
Contributor Author

Is this on the latest version? I tried using the following prompt, but the settings are saving without an issue, and I don't see anything in the log:

"描述这张图片的细节尽可能详细。您的回答应该用中文写成。"

Yes, it is in the latest version, if you write the text of the prompt in Ukrainian, it is impossible to save the settings
Here is an example in Ukrainian, you can copy and paste it into the hint field and try to save it.
«Опишіть цю картинку якомога детальніше. Ваша відповідь має бути написана українською мовою».

@daniel-luper
Copy link
Contributor

daniel-luper commented Jun 20, 2024

Hi @George-br, sorry you've had trouble updating the prompt!

I was able to save your Ukrainian prompt

Опишіть цю картинку якомога детальніше. Ваша відповідь має бути написана українською мовою

in the settings for Claude-3-Haiku in the plugin's latest version without any problems. I was then able to generate image descriptions in Ukrainian.
Could you provide some more context around your bug?

Also, did you press the "Apply" or "Ok" buttons after updating the prompt?

@cartertemm
Copy link
Owner

Hello @George-br,

I just wanted to follow up on this. Are you still experiencing the same behavior after building the addon from main? I've tried on multiple machines without fail.

If so, can you tell me what you have set for the default Windows locale and language?

Thanks!

@George-br
Copy link
Contributor Author

@cartertemm
Hello!
Now the hint in the field is saved, everything is fine.
But after clicking the OK or Apply button, the settings dialog does not close automatically, as it should, in general, if you change any settings in the application after clicking OK, nothing happens with the settings dialog, although the settings are applied
you need to press the ESC key to close the settings dialog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants