feat: add proxy_url support to Conversation class#577
Conversation
* Added proxy_url as an optional parameter to the Conversation class. * Updated the _run method to utilize the proxy_url when establishing a WebSocket connection. This enhancement allows for better network configuration options during conversational AI sessions.
* Downgraded Poetry version in poetry.lock from 1.8.5 to 1.8.3. * Added python-socks (>=2.7.1) and socksio (1.0.0) to dependencies in pyproject.toml and requirements.txt. * Updated httpx to version 0.28.1 with socks extra in both pyproject.toml and requirements.txt. * Updated content hash in poetry.lock.
|
what's the reason for this change ? |
The reason for this change is to provide greater flexibility in network configurations when using the Conversation class. By adding proxy_url as an optional parameter, users can now route WebSocket connections through a proxy server if needed. This is particularly useful in environments with restricted direct internet access, such as corporate networks or certain cloud setups. |
|
Sorry we didn't get to reviewing this sooner. We're doing a spring cleaning of open PRs and marking this as stale for now. If you're still interested in getting this merged, let us know and we'll prioritize a review! |
|
Also, your branch has merge conflicts and will need a rebase before it can be merged. |
This enhancement allows for better network configuration options during conversational AI sessions.