-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
调用zhipu-api和qwen-api等在线模型时报错TypeError: Caught exception: object of type 'NoneType' has no len() #2062
Comments
我也是相关错误,可以看#2051 |
你的第二个问题我也遇到过几次 |
zhipu-api修复方法,同上面qwen-api: |
当每个模型对话都正常时,来回切换模型在对话就没有报错了,即第2个问题也不存在了 |
问题解决了吗? |
按照上面的方法来,试了可以正常用 |
我在本地使用的chatglm2-6b,也有相同的问题。 |
追问一下,调用千帆api在线模型遇到TypeError: Caught exception: object of type 'NoneType' has no len(),应该如何解决呀,使用的是chatchat027版本 |
@61-113 谢谢您,这边已经调通了,chatchat027版本貌似需要安装qianfan==0.1.0,就可以了,之前我的依赖库不兼容。 |
@61-113 我按照这个方法修改了,还是会报这个错,请问还可能是什么原因导致的呀?我这边智谱的没问题,千问和百川的会报这个错误
|
请问你这个问题解决了吗?我遇到同样的问题,是0.2.6版本的。 |
我在 0.2.9的 chatglm3版本上也出现了这个问题 |
解决了吗,我也是一样的问题 |
请问怎么解决 |
修改model_workers/zhipu.py文件,把import zhipuai移到外面来.我看了一下zhipu.py这个文件,没找到import zhipuai在哪里? |
我也没看 到 我把zhipu.py stream 设置成 了true 就是报这个 错 但是false 就是正常运行 |
上面的都试了一遍,也没把zhipu跑通,依旧报这个错。。。。 |
我也是,不起作用 |
问题描述 / Problem Description
1、调用zhipu-api和qwen-api等在线模型时报错TypeError: Caught exception: object of type 'NoneType' has no len();
2、来回切换模型报错streamlit.errors.DuplicateWidgetID: There are multiple widgets with the same
key=''
.复现问题的步骤 / Steps to Reproduce
1、在本地试了多个在线模型,配置了正确key(可以确保正确,使用官方demo都能正常对话),只有xinghuo-api可正常对话,其他的比如zhipu-api和qwen-api对话后都报错:
utils.py[line:25] - ERROR: TypeError: Caught exception: object of type 'NoneType' has no len()
2、来回切换在线模型后对话,抛出错误:
预期的结果 / Expected Result
正常对话
实际结果 / Actual Result
环境信息 / Environment Information
附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
The text was updated successfully, but these errors were encountered: