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] Change cohere model and library #844

Merged
merged 3 commits into from
Jun 1, 2024

Conversation

valentimarco
Copy link
Member

Description

Should fix the problem?? idk langchain is strange...

What i done is:

  • Change where we import the model, from langchain-community to langchain-cohere

Also remove some unused modules

Related to issue #843

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

- langchain_cohere manages The Cohere Python SDK and suppots only v5+
- add temperature setting
@dave90
Copy link
Contributor

dave90 commented Jun 1, 2024

Tested the fix using a Cohere trial key and confirmed that the cat is now working correctly :)

Screenshot 2024-06-01 at 17 17 52 Screenshot 2024-06-01 at 17 20 50 Screenshot 2024-06-01 at 17 17 39

@pieroit
Copy link
Member

pieroit commented Jun 1, 2024

Thanks @valentimarco @dave90 , merging into develop

@pieroit pieroit merged commit ca6eb37 into cheshire-cat-ai:develop Jun 1, 2024
1 check passed
@valentimarco valentimarco deleted the fix_cohere branch June 1, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants