mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user