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

chatglm的api接口调用不适配 #2

Open
SunLang115 opened this issue Aug 2, 2023 · 1 comment
Open

chatglm的api接口调用不适配 #2

SunLang115 opened this issue Aug 2, 2023 · 1 comment

Comments

@SunLang115
Copy link

glm模型下载到本地,根据官方的api填写模型位置之后,在custom_llm.py中的_call方法里切换地址后无效

@CapitaineNemo
Copy link

CapitaineNemo commented Nov 15, 2023

好像是因为LangChain已经匹配了ChatGLM,所以直接用 下面的llm。下面有些是配置,可以根据自己的尝试一下。
from langchain.llms import ChatGLM llm = ChatGLM( endpoint='http://127.0.0.1:8000', max_token='80000', top_p=0.9)

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

2 participants