BasedHardware / omi

AI wearables
https://omi.me
MIT License
3.63k stars 453 forks source link

Apply soft timeout for socket, MODAL_TIMEOUT - 3m #803

Closed beastoin closed 1 month ago

beastoin commented 1 month ago

Summary by Entelligence.AI

github-actions[bot] commented 1 month ago

Image description Entelligence.AI

Walkthrough

The introduced changes add a soft timeout feature to the websocket connection in the backend transcribe router. This enhancement ensures that the connection is closed if it remains open beyond a specified time limit, improving resource management and system stability.

Changes

File Summary
backend/routers/transcribe.py Introduced a soft timeout feature for the websocket connection. The connection will now close if it exceeds a predefined time limit, defined by the TIMEOUT_SECONDS constant.

🎉 With every tick of the clock, we keep our systems in stock. No more lingering connections, only efficient directions. Timeouts are now in place, giving our server some grace. So here's to better flow, as our code continues to grow! 🚀


Uplevel your code reviews with Entelligence.AI Pro ### Entelligence.AI Pro If you like this project, please support us by purchasing the [Pro version](https://Entelligence.AI.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, Entelligence.AI Pro is free for open source projects.