mirror of
https://github.com/block/buzz.git
synced 2026-11-02 23:41:08 +00:00
fix(dictation): typed transcription session, sync editor before merge, block sends during upload
- Use OpenAI typed transcription session format (type: "transcription") instead of legacy realtime fields that would fail or produce no transcripts - Sync editor content via syncContentRef before merging dictation text so manually typed prefixes are preserved when dictation starts - Read send-blocked state from refs at transcript time so uploads prevent auto-submit from clearing the composer Signed-off-by: klopez4212 <klopez4212@gmail.com>
This commit is contained in:
committed by
npub13fn4ahfnvaa2qwylvegdgeajqs0mph6v4qsw4jcqnw4mjh3hzh2quuucm5
parent
71580439bb
commit
caa6bbfea8
@@ -82,8 +82,7 @@ pub async fn create_transcribe_session(
|
||||
.header("Content-Type", "application/json")
|
||||
.json(&serde_json::json!({
|
||||
"session": {
|
||||
"model": "gpt-4o-mini-realtime-preview",
|
||||
"modalities": ["text"],
|
||||
"type": "transcription",
|
||||
"input_audio_transcription": {
|
||||
"model": model,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user