You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
Describe the bug
Support for multilingual requests broken on openai==1.55.3 and httpx==0.28.0
We use openai for multi lingual requests that contain multilingual chars, this used to work on previous openai versions
as soon as we upgraded openai to 1.55.3 and httpx==0.28.0 we got the following error
To Reproduce
use openai==1.55.3 and httpx==0.28.0 .
Run the request
you'll see this error
(The error goes away when we use httpx==0.27.0 but it would be nice if openai python could handle this for us)
E UnicodeEncodeError: 'utf-8' codec can't encode character '\ud83e' in position 39: surrogates not allowed
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/httpx/_content.py:179: UnicodeEncodeError
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
Support for multilingual requests broken on openai==1.55.3 and httpx==0.28.0
We use
openai
for multi lingual requests that contain multilingual chars, this used to work on previous openai versionsas soon as we upgraded openai to 1.55.3 and httpx==0.28.0 we got the following error
To Reproduce
use
openai==1.55.3 and httpx==0.28.0
.Run the request
you'll see this error
(The error goes away when we use httpx==0.27.0 but it would be nice if openai python could handle this for us)
Code snippets
Traceback
OS
macOS
Python version
3.10
Library version
openai v0.27.0
The text was updated successfully, but these errors were encountered: