pub fn create_resilient_model_provider_from_ref(
config: &Config,
name: &str,
api_key: Option<&str>,
api_url: Option<&str>,
reliability: &ReliabilityConfig,
options: &ModelProviderRuntimeOptions,
) -> Result<Box<dyn ModelProvider>, Error>Expand description
Build a resilient model provider from a name that may be either a bare
family ("openai") or a dotted alias ("openai.work"). Dotted names
dispatch through the typed alias factory so endpoint URI, family
extras, and per-alias credentials from [model_providers.<family>.<alias>]
are honored; bare names route through the family factory directly.