Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it "work" #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

threepointone
Copy link

This is a hack to get the relay to not disconnect after 40 seconds. Specifically, it patches the openai package to accept a custom WebSocket implementation, and we pass our own version that reconnects. We also disallow the openai client from explicitly ending the session when the websocket disconnects on a 1011.

This is not a full fix, in the frontend console app I'm getting errors (like Cannot set properties of undefined (setting 'audio_end_ms') I'm not sure whether it's related to the websocket in the backend reconnecting just yet. I'm still investigating.

I've removed the pnpm lockfile and used plain npm, since I need to use patch-package, which doesn't work with pnpm (and I couldn't figure out how to get pnpm patch to work with a github: repo dependency)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant