Configuration for a model provider.
The optional class_path field allows bypassing init_chat_model entirely
and instantiating an arbitrary BaseChatModel subclass via importlib.
Setting class_path executes arbitrary Python code from the user's
config file. This has the same trust model as pyproject.toml build
scripts — the user controls their own machine.
ProviderConfig()List of model identifiers available from this provider.
Environment variable name containing the API key.
Custom base URL.
Fully-qualified Python class in module.path:ClassName format.
When set, create_model imports this class and instantiates it directly
instead of calling init_chat_model.
Extra keyword arguments forwarded to the model constructor.
Flat keys (e.g., temperature = 0) are provider-wide defaults applied to
every model from this provider. Model-keyed sub-tables (e.g.,
[params."qwen3:4b"]) override individual values for that model only;
the merge is shallow (model wins on conflict).