Skip to content

chore: Replace deprecated modelName parameter with model parameter #8325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

christian-bromann
Copy link
Contributor

Deprecation: Replace modelName with model parameter across code base

This PR replaces the deprecated modelName parameter with the preferred model parameter throughout the entire code base. This change standardizes the parameter naming and aligns with the current API conventions.

Apologies for the large changeset - while this PR contains many file modifications, they all follow the same consistent pattern of replacing modelName: "..." with model: "...". The changes are mechanical and do not alter any functionality.

Changes Made:

  • Updated all test files in libs/langchain-openai/src/tests/ to use model instead of modelName
  • Updated examples in documentation/comments to use the new parameter name
  • Maintained backward compatibility (the deprecated modelName parameter still works)

All changes maintain the same functionality while using the preferred parameter name. The deprecated modelName parameter continues to work for backward compatibility.

If preferred, I'm happy to close this commit and break it down into smaller, more focused PRs covering specific test categories or libraries. This would make the review process more manageable if that would be helpful.

Copy link

vercel bot commented Jun 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 11:20pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Jun 18, 2025 11:20pm

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 7, 2025
@christian-bromann christian-bromann changed the title chore: Replace deprecated modelName parameter with model parameter chore: Replace deprecated modelName parameter with model parameter Jun 7, 2025
@dosubot dosubot bot added auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder auto:refactor A large refactor of a feature(s) or restructuring of many files labels Jun 7, 2025
This commit updates all instances of the deprecated `modelName` parameter to use the standardized `model` parameter across the langchain-openai package.

It improves API consistency and follows the standard naming convention used across the LangChain ecosystem. The `modelName` parameter remains supported but is now marked as deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:documentation Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder auto:refactor A large refactor of a feature(s) or restructuring of many files size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant