Skip to content
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

baichuan[patch]:standardize chat init args #21298

Merged

Conversation

partapparam
Copy link
Contributor

@partapparam partapparam commented May 5, 2024

Thank you for contributing to LangChain!

community:baichuan[patch]: standardize init args

updated baichuan_api_key so that aliased to api_key. Added test that it continues to set the same underlying attribute. Test checks for SecretStr

updated temperature with Pydantic Field, added unit test.

Related to #20085

Copy link

vercel bot commented May 5, 2024

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview May 5, 2024 8:10pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels May 5, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels May 5, 2024
@partapparam partapparam changed the title standardize chat init args baichuan[patch]:standardize chat init args May 5, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label May 6, 2024
@hwchase17 hwchase17 enabled auto-merge (squash) May 6, 2024 18:28
@hwchase17 hwchase17 merged commit fee91d4 into langchain-ai:master May 6, 2024
60 checks passed
@partapparam partapparam deleted the standardize_baichuan_params branch May 6, 2024 18:39
dglogo pushed a commit to dglogo/langchain that referenced this pull request May 8, 2024
Thank you for contributing to LangChain!

community:baichuan[patch]: standardize init args

updated `baichuan_api_key` so that aliased to `api_key`. Added test that
it continues to set the same underlying attribute. Test checks for
`SecretStr`

updated `temperature` with Pydantic Field, added unit test. 

Related to langchain-ai#20085
kyle-cassidy pushed a commit to kyle-cassidy/langchain that referenced this pull request May 10, 2024
Thank you for contributing to LangChain!

community:baichuan[patch]: standardize init args

updated `baichuan_api_key` so that aliased to `api_key`. Added test that
it continues to set the same underlying attribute. Test checks for
`SecretStr`

updated `temperature` with Pydantic Field, added unit test. 

Related to langchain-ai#20085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants