langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
1.6.7 is the newest release of 1.x.
In short
1 fixed
Release note
Patch Changes
langchain: Resolve className collision in MODEL_PROVIDER_CONFIG
Refactored
getChatModelByClassNameto accept an optionalmodelProviderparameter for direct lookup, avoiding the className collision issue where multiple providers share the same className (e.g.,google-vertexaiandgoogle-vertexai-webboth use"ChatVertexAI"). WhenmodelProvideris provided, the function uses direct config lookup instead of searching by className. Backward compatibility is maintained for existing callers that only passclassName. This eliminates the duplicated import logic that was previously in_initChatModelHelper.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.