mirror of
https://github.com/block/buzz.git
synced 2026-11-02 15:31:27 +00: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:
committed by
npub13fn4ahfnvaa2qwylvegdgeajqs0mph6v4qsw4jcqnw4mjh3hzh2quuucm5
parent
19463350e2
commit
88b0f2627d
@@ -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