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呢? #10

Closed
ljl3937 opened this issue Feb 20, 2024 · 6 comments
Closed

什么时候能官方支持langchain呢? #10

ljl3937 opened this issue Feb 20, 2024 · 6 comments
Assignees

Comments

@ljl3937
Copy link

ljl3937 commented Feb 20, 2024

什么时候能官方支持langchain呢?有没有比较好的方式使用langchain?

@emaisi
Copy link

emaisi commented Mar 15, 2024

一个不愿意主动去融入另外一种生态,另外langchain也不愿意升级pydantic版本

@upbit
Copy link

upbit commented Mar 16, 2024

什么时候能官方支持langchain呢?有没有比较好的方式使用langchain?

你可以试下这个魔改的版本,只有流式API可用。适配 v2.0.1
https://github.com/upbit/StreamChatPlayground/blob/main/chat_playground/chat_zhipuai.py

@emaisi
Copy link

emaisi commented Mar 19, 2024

什么时候能官方支持langchain呢?有没有比较好的方式使用langchain?

你可以试下这个魔改的版本,只有流式API可用。适配 v2.0.1 https://github.com/upbit/StreamChatPlayground/blob/main/chat_playground/chat_zhipuai.py

好的,我学习学习一下

@upbit
Copy link

upbit commented Mar 19, 2024

什么时候能官方支持langchain呢?有没有比较好的方式使用langchain?

你可以试下这个魔改的版本,只有流式API可用。适配 v2.0.1 https://github.com/upbit/StreamChatPlayground/blob/main/chat_playground/chat_zhipuai.py

好的,我学习学习一下

你可以参考这个版本,@gongfuchang 开源过一个。langchain新版已经处理了pydantic版本问题(自己copy了份v1),因此更新后基本就只有适配问题:
#1 (comment)

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Mar 26, 2024
@zRzRzRzRzRzRzR
Copy link
Member

我们给langchain官方提供了一个PR, 但是一直没有通过,这个只能等

langchain-ai/langchain#16695

@arcstep
Copy link

arcstep commented Mar 27, 2024

情况确实有点复杂,我修改了一个比较全面的版本:

https://github.com/arcstep/langchain_zhipuai

pip install langchain_zhipu

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

No branches or pull requests

5 participants