Skip to main content

openrouter_chat_timeout_secs

Function openrouter_chat_timeout_secs 

Source
pub fn openrouter_chat_timeout_secs(default: u64) -> u64
Expand description

Effective OpenRouter CHAT budget in seconds: --openrouter-timeout, then XDG llm.openrouter_timeout_secs, then default.

Separate from embedding.timeout_secs, which budgets the EMBEDDING client. The same flag feeds both because one invocation talks to one provider, but the two XDG keys stay distinct: a host may need a long chat budget for dense bodies and a short embed budget to keep reads responsive.