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] 阿里云千问/Qwen 2.5 模型请求错误 #5400

Closed
nsafet opened this issue Jan 11, 2025 · 7 comments · Fixed by #5297
Closed

[Bug] 阿里云千问/Qwen 2.5 模型请求错误 #5400

nsafet opened this issue Jan 11, 2025 · 7 comments · Fixed by #5297
Labels
🐛 Bug Something isn't working | 缺陷 released

Comments

@nsafet
Copy link

nsafet commented Jan 11, 2025

📦 Environment

Docker

📌 Version

lobe-chat V1.45.6

💻 Operating System

Other Linux

🌐 Browser

Edge

🐛 Bug Description

Qwen 2.5 14B模型使用,发生模型请求错误,下面是反馈错误代码:
{
"error": {
"code": "invalid_parameter_error",
"param": null,
"message": "<400> InternalError.Algo.InvalidParameter: This model does not support enable_search.",
"type": "invalid_request_error"
},
"endpoint": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"provider": "qwen"
}
qwen2 5 14b

📷 Recurrence Steps

请开发者修正相关代码

🚦 Expected Behavior

无法正常使用Qwen 2.5模型

📝 Additional Information

No response

@nsafet nsafet added the 🐛 Bug Something isn't working | 缺陷 label Jan 11, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 11, 2025
@lobehubbot
Copy link
Member

👀 @nsafet

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Jan 11, 2025

@nsafet 你好!我是一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者时帮助你。

The error you're encountering indicates that the Qwen 2.5 14B model does not support the enable_search parameter. In the codebase, the enable_search parameter is set to true for models that do not start with 'qwen-vl' [1]. To resolve this issue, you need to modify the configuration to ensure that the enable_search parameter is not included for the Qwen 2.5 14B model.

You can check the configuration in the handlePayload function within the chatCompletion object of the LobeQwenAI configuration and adjust it accordingly to prevent the enable_search parameter from being set for this specific model.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@nsafet
Copy link
Author

nsafet commented Jan 11, 2025

普通用户无法修改模型相关的参数。

@lobehubbot
Copy link
Member

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


Ordinary users cannot modify model-related parameters.

@SpeedupMaster
Copy link
Contributor

#5297

@lobehubbot
Copy link
Member

@nsafet

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

🎉 This issue has been resolved in version 1.45.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 released
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants