You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #5039, we added the enable_search parameter to Qwen model requests according to the documentation. However, not all Qwen models support this parameter. e.g. qwen2.5-3b-instruct.
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Hey @PatriciaLee3, I'm here to help you with any bugs, questions, or contributions! Let me know how I can assist you.
The issue you're encountering is due to the fact that not all Qwen models support the enable_search parameter. According to the codebase, models that start with 'qwen-vl' do not have the enable_search parameter set to true, which might be causing the invalid parameter error you're seeing with the qwen2.5-3b-instruct model [1].
To resolve this, you may need to adjust the logic in the handlePayload function to ensure that enable_search is only set for models that support it. This involves checking the model name and applying the parameter conditionally based on the model's capabilities.
📦 Environment
Docker
📌 Version
v1.43.1
💻 Operating System
Other Linux
🌐 Browser
Chrome
🐛 Bug Description
In #5039, we added the
enable_search
parameter to Qwen model requests according to the documentation. However, not all Qwen models support this parameter. e.g.qwen2.5-3b-instruct
.lobe-chat/src/libs/agent-runtime/qwen/index.ts
Lines 36 to 41 in 89a60e3
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: