Auto-detect provider from model name.
Intentionally duplicates a subset of LangChain's
_attempt_infer_model_provider because we need to resolve the provider
before calling init_chat_model in order to:
init_chat_model.| Name | Type | Description |
|---|---|---|
model_name* | str | Model name to detect provider from. |