If a built-in provider is specified by name via a ModelConfig, it will fail, because router.resolve_provider(config.provider) is used without first calling providers.load_builtins_once(), which is only called when the provider is being inferred by name rather than specified via ModelConfig.
Before:
langextract.core.exceptions.InferenceConfigError:
No provider found matching: 'ollama'. Available providers can be listed with list_providers()
PR:
#331
If a built-in provider is specified by name via a
ModelConfig, it will fail, becauserouter.resolve_provider(config.provider)is used without first callingproviders.load_builtins_once(), which is only called when the provider is being inferred by name rather than specified viaModelConfig.Before:
langextract.core.exceptions.InferenceConfigError:
No provider found matching: 'ollama'. Available providers can be listed with list_providers()
PR:
#331