Skip to main content

get_openrouter_chat_client

Function get_openrouter_chat_client 

Source
pub fn get_openrouter_chat_client(
    api_key: SecretBox<String>,
    model: &str,
    timeout_secs: u64,
) -> Result<&'static OpenRouterChatClient, AppError>
Expand description

v1.0.95 (ADR-0054): initialises the process-wide OpenRouter chat client on first use and returns it. model is the text model the enrich JUDGE will call (no default; the caller validates presence upfront).