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

langchain: init_chat_model() to import ChatOllama from langchain-ollama and fallback on langchain-community #24821

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

StreetLamb
Copy link
Contributor

Description: init_chat_model() should import ChatOllama from langchain-ollama. If that fails, fallback to langchain-community

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

vercel bot commented Jul 30, 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 Jul 30, 2024 2:48pm

@dosubot dosubot bot added langchain Related to the langchain package Ɑ: models Related to LLMs or chat model modules 🤖:improvement Medium size change to existing code to handle new use-cases labels Jul 30, 2024
@jacoblee93
Copy link
Contributor

Thank you!

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jul 30, 2024
@baskaryan baskaryan merged commit d8f3ea8 into langchain-ai:master Jul 30, 2024
53 checks passed
@StreetLamb StreetLamb deleted the init_chat_ollama branch July 31, 2024 15:49
olgamurraft pushed a commit to olgamurraft/langchain that referenced this pull request Aug 16, 2024
…in-ollama and fallback on langchain-community (langchain-ai#24821)

Description: init_chat_model() should import ChatOllama from
`langchain-ollama`. If that fails, fallback to `langchain-community`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases langchain Related to the langchain package lgtm PR looks good. Use to confirm that a PR is ready for merging. Ɑ: models Related to LLMs or chat model modules size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants