This Cloudflare Worker transparently proxies WebSocket connections to OpenAI's API.
Replace api.openai.com with this proxy URL in your WebSocket connection:
wss://proxy.autolife.ai/v1/realtime?model=gpt-4o-realtime-preview-2024-10-01
Your client should still include the OpenAI API key in the Authorization header as normal.