Skip to main content

detect_provider_from_env

Function detect_provider_from_env 

Source
pub fn detect_provider_from_env() -> (&'static str, &'static str)
Expand description

Detect the provider id and a sensible default model from environment keys.

Used as the fallback when no provider is configured. Falls back to a local Ollama setup when no API keys are present.