[PR #2150] [MERGED] docs: fix ChatGoogleGenerativeAI example to use model instead of modelName #2799

Closed
opened 2026-06-05 18:17:04 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2150
Author: @time1043
Created: 1/8/2026
Status: Merged
Merged: 1/22/2026
Merged by: @lnhsingh

Base: mainHead: patch-1


📝 Commits (1)

  • 07c1f81 Fix property name from 'modelName' to 'model'

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/oss/javascript/integrations/chat/index.mdx (+1 -1)

📄 Description

Overview

This PR fixes an incorrect property name in the ChatGoogleGenerativeAI documentation.
The example currently uses modelName, but the actual constructor and TypeScript types only support the model property.

Type of change

Type: Fix typo/bug/link/formatting

Related issues/PRs

  • GitHub issue: None
  • Feature PR: None
  • Linear issue:
  • Slack thread:

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if 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

image

In the latest version of @langchain/google-genai (^2.1.6), ChatGoogleGenerativeAI expects a model property. The modelName field does not exist in the current implementation.

image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/2150 **Author:** [@time1043](https://github.com/time1043) **Created:** 1/8/2026 **Status:** ✅ Merged **Merged:** 1/22/2026 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`07c1f81`](https://github.com/langchain-ai/docs/commit/07c1f812fa800792caece96a24e9d3050d34ed54) Fix property name from 'modelName' to 'model' ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/javascript/integrations/chat/index.mdx` (+1 -1) </details> ### 📄 Description ## Overview <!-- Brief description of what documentation is being added/updated --> This PR fixes an incorrect property name in the `ChatGoogleGenerativeAI` documentation. The example currently uses `modelName`, but the actual constructor and TypeScript types only support the `model` property. ## Type of change **Type:** Fix typo/bug/link/formatting ## Related issues/PRs <!-- Link to related issues, feature PRs, or discussions (if applicable) To automatically close an issue when this PR is merged, use closing keywords: - "closes #123" or "fixes #123" or "resolves #123" For regular references without auto-closing, just use: - "#123" or "See issue #123" Examples: - closes #456 (will auto-close issue #456 when PR is merged) - See #789 for context (will reference but not auto-close issue #789) --> - GitHub issue: None - Feature PR: None <!-- For LangChain employees, if applicable: --> - Linear issue: - Slack thread: ## Checklist <!-- Put an 'x' in all boxes that apply --> - [x] I have read the [contributing guidelines](README.md) - [ ] I have tested my changes locally using `docs dev` - [ ] All code examples have been tested and work correctly - [ ] I have used **root relative** paths for internal links - [ ] I have updated navigation in `src/docs.json` if needed (Internal team members only / optional): Create a preview deployment as necessary using the [Create Preview Branch workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml) ## Additional notes <!-- Any other information that would be helpful for reviewers --> https://docs.langchain.com/oss/javascript/integrations/chat#google-gemini <img width="1710" height="974" alt="image" src="https://github.com/user-attachments/assets/e9b5d3e1-4b58-4e8b-93e6-a226ad26468a" /> In the latest version of `@langchain/google-genai` (`^2.1.6`), `ChatGoogleGenerativeAI` expects a `model` property. The `modelName` field does not exist in the current implementation. <img width="1231" height="81" alt="image" src="https://github.com/user-attachments/assets/76d01285-7e4e-4d0c-9165-2c254872357d" /> <img width="1369" height="656" alt="image" src="https://github.com/user-attachments/assets/7a4e0948-a620-4217-af31-edc2cf44f600" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:17:04 -04:00
yindo closed this issue 2026-06-05 18:17:05 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#2799