[Bug] Add Zhipu AI model glm-4-flash error report
Contact Information
No response
MaxKB Version
v1.8.1
Problem Description
添加智普AI模型,模型类型选择glm-4-flash,下拉里没有,直接输入选择的,报错了
Steps to Reproduce
系统管理 模型设置 共有模型 智普AI 添加模型 模型类型选择大语言模型 基础模型选择 https://bigmodel.cn/console/modelcenter/square 这个页面的glm-4-flash,下拉里没有,直接输入选择的 输入我的api key 接口报错,message信息为:校验失败,请检查参数是否正确: Client error '401 Unauthorized' for url 'https://open.bigmodel.cn/api/paas/v4/chat/completions'\nFor more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
如果模型类型选择图片理解 基础模型选择glm-4v-flash 就可以正常新增
The expected correct result
No response
Related log output
No response
Additional Information
No response
您好,没有复现这个问题
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Hello, this problem has not been reproduced
我用官方代码测试了一下,我的api token是可以正常请求并正常返回的,截图里抹掉了原始token
运行日志从哪查看呢?我想看看日志打印了什么错误,或者需要我提供什么信息?
使用docker los看不到运行日志,只打印以下信息 2025-01-02 13:43:34 Check service status: local_model -> running at 118 2025-01-02 13:44:05 Check service status: gunicorn -> running at 116 2025-01-02 13:44:06 Check service status: celery_default -> running at 117 2025-01-02 13:44:07 Check service status: local_model -> running at 118
使用docker exec 进入容器后也没找到日志在哪
从报错信息来看是参数不对,你检查一下你的账号是否有余额,是有有并发限制,key是否正常。我们测试环境可以正常添加使用智谱AI的模型,无法复现你的问题。
v1.9 智谱AI供应商 图片理解模型下拉列表已新增glm-4-flash模型,该版本已发布。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Judging from the error message, the parameters are incorrect. Check whether your account has a balance, whether there are concurrency limits, and whether the key is normal. In our test environment, models using Zhipu AI can be added normally, but your problem cannot be reproduced.
v1.9 The glm-4-flash model has been added to the picture understanding model drop-down list of Zhipu AI Supplier, and this version has been released.