mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Two fixes: 1. (transcribe.rs) expires_after must be an object with anchor + seconds fields per OpenAI's client-secret schema, not a bare integer. The bare number would cause OpenAI to reject the request with a 400, making dictation fail with a 502 from the relay. 2. (useRealtimeDictation.ts) The user-stop grace window (3s delayed teardown with run kept valid) now applies to ALL models, not just manual-commit ones. For server-VAD models, the final VAD completion event may still be in-flight when the user clicks the mic to stop — without the grace window, that event was dropped and the tail of the dictated message disappeared.