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

Fix MoonshotChat instantiate with alias #25755

Merged

Conversation

maang-h
Copy link
Contributor

@maang-h maang-h commented Aug 26, 2024

  • Description:
    • Fix MoonshotChat instantiate with alias
    • Add MoonshotChat to __init__.py

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 26, 2024
Copy link

vercel bot commented Aug 26, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 26, 2024 5:08pm

@dosubot dosubot bot added community Related to langchain-community 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Aug 26, 2024
get_from_dict_or_env(values, "moonshot_api_key", "MOONSHOT_API_KEY")
get_from_dict_or_env(
values,
["moonshot_api_key", "api_key", "openai_api_key"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it correct to include openai_api_key here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, ChatOpenAI is its parent class.

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Aug 26, 2024
@ccurme ccurme enabled auto-merge (squash) August 26, 2024 17:10
@ccurme ccurme merged commit a566a15 into langchain-ai:master Aug 26, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community 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
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants