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
refactor(api): make WebSocket proxy generic over STT providers (#2080)
* refactor(api): make WebSocket proxy generic over STT providers
- Rename DeepgramProxyConnection to WsProxyConnection
- Add WsProxyOptions for configurable headers and control message types
- Add x-owh-upstream-url and x-owh-upstream-auth headers for Rust client to specify upstream
- Add createProxyFromRequest factory that reads headers to determine upstream
- Keep createDeepgramProxy and buildDeepgramUrl for backwards compatibility
- Update listen.ts to use the new generic createProxyFromRequest
Co-Authored-By: yujonglee <[email protected]>
* fix(api): wrap createProxyFromRequest in try block for URL parsing errors
- Move createProxyFromRequest call inside try block to catch URL parsing errors
- Change error string from 'upstream_unavailable' to 'upstream_connect_failed'
Co-Authored-By: yujonglee <[email protected]>
* rename
* split files
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
0 commit comments