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 Chat Improvements #41

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Conversation

KevinLuong96
Copy link
Contributor

@KevinLuong96 KevinLuong96 commented Apr 24, 2024

This PR

  • fixes python interpreter using langchain. Currently tool use using Cohere API passes in a dictionary with a code key, but Langchain passes in code string as the parameter. This PR adds a langchain wrapper to call the function with the right parameters
  • Fixes streaming of langchain by removing async
  • Passes the results of the langchain events through to frontend
  • Sends a stream start event when the langchain Chat stream starts
Screen.Recording.2024-04-24.at.3.34.01.PM.mov

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@KevinLuong96 KevinLuong96 changed the title Langchain Chat Langchain Chat Improvements Apr 24, 2024
@KevinLuong96 KevinLuong96 marked this pull request as ready for review April 24, 2024 19:35
@KevinLuong96 KevinLuong96 requested a review from a team as a code owner April 24, 2024 19:35
@KevinLuong96 KevinLuong96 merged commit 756a80b into main Apr 24, 2024
2 checks passed
@KevinLuong96 KevinLuong96 deleted the update_langchain_tool_result branch April 24, 2024 19:53
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.

None yet

3 participants