docs: fix ChatGoogleGenerativeAI example to use model instead of modelName - #2150
Merged
Lauren Hirata Singh (lnhsingh) merged 1 commit intoJan 22, 2026
Merged
Conversation
time1043
requested review from
Lauren Hirata Singh (lnhsingh) and
Naomi Pentrel (npentrel)
as code owners
January 9, 2026 02:23
Lauren Hirata Singh (lnhsingh)
approved these changes
Jan 22, 2026
Lauren Hirata Singh (lnhsingh)
merged commit Jan 22, 2026
0c90190
into
langchain-ai:main
10 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR fixes an incorrect property name in the
ChatGoogleGenerativeAIdocumentation.The example currently uses
modelName, but the actual constructor and TypeScript types only support themodelproperty.Type of change
Type: Fix typo/bug/link/formatting
Related issues/PRs
Checklist
docs devsrc/docs.jsonif needed(Internal team members only / optional): Create a preview deployment as necessary using the Create Preview Branch workflow
Additional notes
https://docs.langchain.com/oss/javascript/integrations/chat#google-gemini
In the latest version of
@langchain/google-genai(^2.1.6),ChatGoogleGenerativeAIexpects amodelproperty. ThemodelNamefield does not exist in the current implementation.