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

Update cohere.py #795

Merged
merged 2 commits into from
Jan 30, 2023
Merged

Update cohere.py #795

merged 2 commits into from
Jan 30, 2023

Conversation

bair82
Copy link
Contributor

@bair82 bair82 commented Jan 29, 2023

When stop tokens are set in Cohere LLM constructor, they are currently not stripped from the response, and they should be stripped

When stop tokens are set in constructor, they are currently not stripped from the response, and they should be stripped
@hwchase17
Copy link
Contributor

great catch!

Realized that stop can be None in line 126, so it should be replaced with params["stop_sequences"], which won't be None
@hwchase17 hwchase17 merged commit ae5695a into langchain-ai:master Jan 30, 2023
@bair82 bair82 deleted the patch-1 branch January 31, 2023 07: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.

2 participants