-
Notifications
You must be signed in to change notification settings - Fork 333
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
error: 'latin-1' codec can't encode character '\u2026' #1035
Comments
Thanks @wiktorw767 . Will take a look! |
Are you able to share any of "../garak/Desktop/GarakConfig/garak-config2.json" ? |
Sure, here it is:
The authentication looks like is working fine - if I don't specify $KEY correctly then I get 401 error. With correct $KEY set I get the '\u2026' error The question-answer flow I see in browser developer tools looks like this:
The '\u2026' character is not visible in the developer tools inspection, though it is clearly visible on screen while waiting for the reply to be issued |
It looks like the HTTP standard has unclear support for some characters in HTTP header values, and that Python 3.12 / This is a choice that doesn't give much flexibility and not something that it's easy for us to do things about. From the JSON config above and the current version of garak's |
Steps to reproduce
How'd you do it?
Issuing command garak --model_type rest -G ../garak/Desktop/GarakConfig/garak-config2.json --probes malwaregen.Evasion --generations 1
Receiving an error: 'latin-1' codec can't encode character '\u2026' in position 512: ordinal not in range(256)
The AI chatbot I am trying to scan is outputting '\u2026' - the 'three thinking dots'. It looks like this is causing the encoding error above.
garak version
garak LLM vulnerability scanner v0.10.0
Additional Information
report.html
/report.jsonl
/hitlog.jsonl
and if possiblegarak.log
garak.log attached, the error is in itgarak --model_type rest -G ../garak/Desktop/GarakConfig/garak-config2.json --probes malwaregen.Evasion --generations 1
garak.log
The text was updated successfully, but these errors were encountered: