From acc29cc945cc203f5e8cca76c586e185320ba4c0 Mon Sep 17 00:00:00 2001 From: Mason Daugherty Date: Mon, 6 Apr 2026 10:59:21 -0400 Subject: [PATCH] docs(langchain): add missing baseten and litellm to `init_chat_model` (#36562) The `init_chat_model` docstring lists supported `model_provider` values, but `baseten` and `litellm` were missing despite both being present in `_BUILTIN_PROVIDERS` since they were added. This adds the two missing entries to keep the docstring in sync with the registry. --- libs/langchain_v1/langchain/chat_models/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/langchain_v1/langchain/chat_models/base.py b/libs/langchain_v1/langchain/chat_models/base.py index 551c15b7694..9757f04d052 100644 --- a/libs/langchain_v1/langchain/chat_models/base.py +++ b/libs/langchain_v1/langchain/chat_models/base.py @@ -285,6 +285,8 @@ def init_chat_model( - `openrouter` -> [`langchain-openrouter`](https://docs.langchain.com/oss/python/integrations/providers/openrouter) - `perplexity` -> [`langchain-perplexity`](https://docs.langchain.com/oss/python/integrations/providers/perplexity) - `upstage` -> [`langchain-upstage`](https://docs.langchain.com/oss/python/integrations/providers/upstage) + - `baseten` -> [`langchain-baseten`](https://docs.langchain.com/oss/python/integrations/providers/baseten) + - `litellm` -> [`langchain-litellm`](https://docs.langchain.com/oss/python/integrations/providers/litellm) configurable_fields: Which model parameters are configurable at runtime: