Skip to content

Bug: Matching built-in providers fails if specified by name rather than inferred from model. #335

@telackey

Description

@telackey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions