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 Cohere models by using new langchain-cohere partner package #848

Merged
merged 3 commits into from
Jun 21, 2024

Conversation

dlqqq
Copy link
Member

@dlqqq dlqqq commented Jun 21, 2024

Description

  • Uses new langchain_cohere partner package instead of deprecated import from langchain_community
  • Uses new ChatCohere (ChatModel) class instead of deprecated Cohere (LLM) class to fix Cohere models

Demo

Tested with command-r language model and embed-english-v3.0 embedding model.

Screenshot 2024-06-21 at 7 20 24 AM

@dlqqq dlqqq added the bug Something isn't working label Jun 21, 2024
@dlqqq dlqqq changed the title Fix Cohere models by depending on langchain-cohere Fix Cohere models by using new langchain-cohere partner package Jun 21, 2024
@dlqqq dlqqq force-pushed the use-langchain-cohere branch from 375a1f9 to ebf3dc0 Compare June 21, 2024 15:45
@dlqqq dlqqq merged commit dae1daf into jupyterlab:main Jun 21, 2024
8 checks passed
@dlqqq dlqqq deleted the use-langchain-cohere branch June 21, 2024 15:56
@jabbera
Copy link

jabbera commented Jun 25, 2024

@dlqqq new versions of langchain_cohere>1.5.0 require langchain-core >= 0.2.0 langchain-ai/langchain-cohere#52 but this project restricts it to < 0.2

"langchain>=0.1.0,<0.2.0",

Any way to bump the tolerance here.

Marchlak pushed a commit to Marchlak/jupyter-ai that referenced this pull request Oct 28, 2024
…pyterlab#848)

* fix Cohere models by depending on langchain_cohere

* remove Cohere import

* update Cohere provider dependencies in docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants