Skip to main content

DEFAULT_EMBEDDING_HTTP_TIMEOUT_SECS

Constant DEFAULT_EMBEDDING_HTTP_TIMEOUT_SECS 

Source
pub const DEFAULT_EMBEDDING_HTTP_TIMEOUT_SECS: u64 = 30;
Expand description

Default total per-request budget, in seconds, for an OpenRouter embeddings HTTP call when neither --openrouter-timeout nor XDG embedding.timeout_secs supplies a value (GAP-SG-141 B3).

Deliberately far below the chat-side budget: an embeddings response is a fixed-size vector, so a call that has not returned within this window is stalled rather than slow.