-
Notifications
You must be signed in to change notification settings - Fork 10
Support UTF-8 characters (e.g. Hebrew) #43
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
Comments
Looks like there is some confusion in the @orenagiv this has been taken care of in #44 and successfully published to |
Fixed in: Thank you both! |
@walsha2 we need to recreate the other clients as well ( |
|
Thanks @davidmigloz @walsha2 ! |
|
Hey,
While using the LangChain.dart package, which uses the
openapi_spec
package, I've noticed that if the OpenAI response includes characters in Hebrew or other languages with special characters - it results with "gibberish".This is most probably due to
client.dart
> lines 883 and 896, wherejson.decode
is doneover r.body
:https://github.com/search?q=repo%3Atazatechnology%2Fopenapi_spec+json.decode%28r.body%29&type=code
It seems that due to this Dart issue:
dart-lang/http#789
The
json.decode
should be done withutf8.decode
over ther.bodyBytes
, in order to properly handle the UTF-8 chars:I've manually manipulated the generated
client.dart
file - and it resolved the problem.However, unfortunately, due to lack of time I'm unable to test this properly and submit a Pull Request...
I hope the maintainers will have to take a look soon.
The text was updated successfully, but these errors were encountered: