Skip to main content

DEFAULT_TIMEOUT_SECS

Constant DEFAULT_TIMEOUT_SECS 

Source
pub const DEFAULT_TIMEOUT_SECS: u64 = 300;
Expand description

Default total-request timeout, in seconds. Generous on purpose: it must cover upload + model inference + download, and CPU inference of a voice note can take many seconds. (reqwest’s blocking client otherwise silently defaults to 30s, which truncates a slow transcription mid-inference.)