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
If someone intents to use OpenAI client as a proxy for their calls.
Specially for the realtime calls, it will throw 401. There is a chance that the authentication details might be there in the default headers.
Since default headers are not being considered in the extra_headers. Hence the call returns a 401.
I use portkey (portkey.ai) for my project. There I am using default_headers where all the authentication takes place.
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
If someone intents to use OpenAI client as a proxy for their calls.
Specially for the realtime calls, it will throw 401. There is a chance that the authentication details might be there in the default headers.
Since default headers are not being considered in the extra_headers. Hence the call returns a 401.
I use portkey (portkey.ai) for my project. There I am using default_headers where all the authentication takes place.
To Reproduce
Error:
websockets.exceptions.InvalidStatus: server rejected WebSocket connection: HTTP 401
Code snippets
OS
macOS 15.1.1
Python version
Python 3.9.6
Library version
v1.58.1
The text was updated successfully, but these errors were encountered: