Skip to main content

detect_provider_and_model_from_env

Function detect_provider_and_model_from_env 

Source
pub fn detect_provider_and_model_from_env() -> Option<(LlmProvider, &'static str)>
Expand description

Scan well-known env vars and return the first available (provider, default-model) pair. Returns None if no recognised key is set (Ollama local is not detected here).