-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] Agent模式下无法设置system提示词 #5204
Comments
The issue you're experiencing with the system prompt not working in Agent mode when tools are added is related to the qwen model's inability to perform tool calls with streaming. In Langchain-Chatchat version 0.3.1.3, this problem arises because the qwen model cannot handle streaming during tool calls, which affects the system prompt's functionality in Agent mode [1]. To address this, the code includes a patch that modifies the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
thank you for your reply, robot. But in all of the post, I set "stream" to "false", i am sure that it doesn't cause by "stream" key. |
If the issue persists even with streaming set to "false," it might be related to other configurations or conditions in the Langchain-Chatchat codebase that could override or disable the system prompt in Agent mode. Unfortunately, I couldn't find specific details in the repository about configurations that might cause the system prompt to be ignored or overridden. It might be helpful to review the integration of the system prompt in the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
问题描述
当chat加入tools后,设置的system提示词失效
复现问题的步骤
预期的结果
llm返回内容应当包含system相关的信息。
实际结果 / Actual Result
llm返回的信息为模型本身的信息。
环境信息 / Environment Information
The text was updated successfully, but these errors were encountered: