From 88b0f2627dab910b2b3062ee2e53959e7b4cab82 Mon Sep 17 00:00:00 2001 From: klopez4212 Date: Sat, 4 Jul 2026 15:40:21 +0100 Subject: [PATCH] fix(relay): add doc comments to transcribe response structs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit New public API needs doc comments — clippy runs with -D missing-docs, so TranscribeStatus and TranscribeSession were failing the Rust Lint gate. Signed-off-by: klopez4212 --- crates/buzz-relay/src/api/transcribe.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/buzz-relay/src/api/transcribe.rs b/crates/buzz-relay/src/api/transcribe.rs index 915dcf5b4..633a3f221 100644 --- a/crates/buzz-relay/src/api/transcribe.rs +++ b/crates/buzz-relay/src/api/transcribe.rs @@ -13,12 +13,16 @@ use crate::state::AppState; const OPENAI_REALTIME_SESSIONS_URL: &str = "https://api.openai.com/v1/realtime/sessions"; const DEFAULT_TRANSCRIPTION_MODEL: &str = "whisper-1"; +/// Response for `GET /transcribe/status`, reporting whether the relay can mint +/// OpenAI Realtime transcription sessions and which model it will use. #[derive(Serialize)] pub struct TranscribeStatus { configured: bool, model: String, } +/// Response for `POST /transcribe/session`, carrying the ephemeral OpenAI +/// Realtime client secret the desktop app uses to open its WebRTC connection. #[derive(Serialize)] #[serde(rename_all = "camelCase")] pub struct TranscribeSession {