fix(relay): add doc comments to transcribe response structs

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 <klopez4212@gmail.com>
This commit is contained in:
klopez4212
2026-07-11 16:18:05 +01:00
parent 19463350e2
commit 88b0f2627d
+4
View File
@@ -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 {