Skip to main content

resolve_config

Function resolve_config 

Source
pub fn resolve_config() -> Result<SummaryConfig, SummarizeError>
Expand description

Resolves summary configuration from the config file and environment variables.

Environment variables take precedence over config file values:

  • LORE_SUMMARY_PROVIDER overrides summary_provider
  • LORE_SUMMARY_API_KEY overrides the provider-specific API key
  • LORE_SUMMARY_MODEL overrides the provider-specific model

Returns NotConfigured if no provider or API key is set.