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

[Bug] Add Zhipu AI model glm-4-flash error report #1959

Closed
WayneLee5991 opened this issue Dec 31, 2024 · 5 comments
Closed

[Bug] Add Zhipu AI model glm-4-flash error report #1959

WayneLee5991 opened this issue Dec 31, 2024 · 5 comments
Assignees
Milestone

Comments

@WayneLee5991
Copy link

WayneLee5991 commented Dec 31, 2024

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

@shaohuzhang1 shaohuzhang1 changed the title [Bug] 添加智普AI模型glm-4-flash报错 [Bug] Add Zhipu AI model glm-4-flash error report Dec 31, 2024
@liuruibin liuruibin added this to the v1.9.0 milestone Dec 31, 2024
@zyyfit
Copy link

zyyfit commented Jan 2, 2025

您好,没有复现这个问题
图片

@shaohuzhang1
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Hello, this problem has not been reproduced
Picture

@WayneLee5991
Copy link
Author

image
我用官方代码测试了一下,我的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 进入容器后也没找到日志在哪

@baixin513
Copy link
Contributor

从报错信息来看是参数不对,你检查一下你的账号是否有余额,是有有并发限制,key是否正常。我们测试环境可以正常添加使用智谱AI的模型,无法复现你的问题。

v1.9 智谱AI供应商 图片理解模型下拉列表已新增glm-4-flash模型,该版本已发布。

@shaohuzhang1
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants