Module: config
Contents
StructsAiConfig- AI configuration.
load_config- Load config with cascade: env vars -> ~/.resq/ai.toml -> .resq/ai.toml.
resq_ai::config::AiConfig
Struct AI configuration. Fields:provider: crate::provider::Provider- Selected provider.model: String- Model identifier.base_url: Option<String>- Base URL override.max_tokens: u32- Max tokens in response.timeout_secs: u64- HTTP request timeout in seconds.
fn api_key(self: &Self) -> &str- Access the API key.
- Debug
fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result