OpenInterpreter / 01

The open-source language model computer
http://openinterpreter.com/01
GNU Affero General Public License v3.0
4.76k stars 470 forks source link

Fix win10 not connecting to websocket server #198

Closed dheavy closed 3 months ago

dheavy commented 3 months ago

Context

Closes #197.

Problem

Windows 10 machine not connecting to websocket server on startup.

Solution

Branch out a Win10-specific websocket communication approach.

Discussion

I do not know if other Windows 10 users are experiencing the same issue. I would love to get some feedback from another Windows 10 user to know more.

Apparently, Win 10 has more than the double of market shares compared to Win 11, so maybe I'm not gonna switch too fast to be able to catch remaining Win 10 issues.

Here is an overview of changes:

After that, the connection happens. The "Hold spacebar..." message appears. When I hold the spacebar and talk, I have verified that a wav file is created and stored in the temp directory. After that, it's not working as expected (message displayed, sent, message talks to you), but this would be another bug to tackle in another PR.

Verified in Win10 PC and macOS Sonoma 14.3.1 (23D60) for regressions.

tyfiero commented 3 months ago

This looks great @dheavy. Works well on Mac still too. Thank you so much for your contribution! Merging