vsakkas / sydney.py

Python Client for Copilot (formerly named Bing Chat), also known as Sydney.
MIT License
239 stars 31 forks source link

Websocket proxy #144

Open Mazawrath opened 5 months ago

Mazawrath commented 5 months ago

This is a rough draft of using the websocket-client to support using proxies for the websocket portion of Bing Chat. I currently just did this to get my personal solution to work, but it's a groundwork to use that could possibly be merged if there is any interest. There are some glaring issues with my changes, including the fact this new websocket isn't being used in other places that I don't use, but that can be improved if again there is interest.

Mazawrath commented 5 months ago

It's possible I was doing it wrong, but I think this library isn't async which might be the biggest issue if we did want to use this library. Maybe there is a better one that still supports proxies.