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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
The error message you're encountering indicates that the role of the first message must be either "user" or "assistant" when using the Wenxin model. This error is identified by the error code 336006. It seems that when you specify a role, the system is not correctly assigning the required role to the first message, leading to this error.
To resolve this issue, you should ensure that the first message in your interaction with the Wenxin model is explicitly set with the role "user" or "assistant". This might involve checking the part of your code where the initial message is constructed and ensuring that the role is correctly assigned.
Unfortunately, I couldn't find specific details in the codebase about how role assignment is handled for the Wenxin model, so you might need to look into the relevant parts of the code where the message roles are set or consult any available documentation or comments in the codebase that might provide further guidance.
📦 部署环境
Docker
📌 软件版本
最新版
💻 系统环境
Ubuntu
🌐 浏览器
Edge
🐛 问题描述
遇到的问题:
在使用百度文心模型的时候,并且指定角色时,会报错,在随便聊聊中士正常的
在随便聊聊中的截图
在角色设定中的截图
报错:
{ "error": { "id": "as-p8ce5d12zj", "headers": { "p3p": "CP=\" OTI DSP COR IVA OUR IND COM \"", "date": "Sun, 22 Dec 2024 23:47:42 GMT", "appid": "116143465", "server": "Apache", "connection": "keep-alive", "set-cookie": "BAIDUID=5F5912788EAE7604720B81144C4948AE:FG=1; expires=Thu, 31-Dec-37 23:55:55 GMT; max-age=2145916555; path=/; domain=.baidubce.com; version=1", "content-type": "application/json; charset=utf-8", "content-length": "108", "x-aipe-self-def": "eb_total_tokens:0,prompt_tokens:0,id:as-p8ce5d12zj", "x-baidu-request-id": "c1047a4c6ec780c33ff53e48cf9613c01000324", "x-openapi-server-timestamp": "1734911262", "access-control-allow-origin": "*", "access-control-allow-headers": "Content-Type" }, "error_msg": "the role of first message must be user or assistant", "error_code": 336006 }, "provider": "wenxin" }
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
The text was updated successfully, but these errors were encountered: