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
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
I found a similar open issue related to role alternation in messages when using different models. The solution suggested in that issue is to ensure that the roles "user" and "assistant" alternate correctly in the message sequence, starting with a "user" role. This involves checking your code to ensure that the initial message is set with the correct role and that the roles alternate as required [1].
In the lobe-chat codebase, role assignment is handled by filtering and adjusting the roles of messages. If the first message has the role "assistant," a message with an empty content and the role "user" is prepended. Additionally, consecutive messages with the same role are separated by inserting a message with the opposite role [2].
You might want to review the part of your code where messages are constructed and ensure that the roles are correctly assigned and alternated, especially when switching from a tool model to the Hunyuan model.
📦 部署环境
Official Cloud
📦 部署模式
客户端模式(lobe-chat 镜像)
📌 软件版本
1.75.2
💻 系统环境
Windows
🌐 浏览器
Chrome
🐛 问题描述
如题,如果之前有模型使用了tool,再改为混元模型就会报错,关闭或打开网络连接都无法解决,只能重开一个换题,这是一个bug吗?还是我哪里配置不对?
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: