Closed yitao2020 closed 3 weeks ago
👀 @yitao2020
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 @yitao2020! I'm here to help you with any bugs, questions, or to assist you in becoming a contributor. Let's squash those bugs together! 🤖
I couldn't find a specific solution to the error you're encountering in the Lobe Chat documentation. However, the error message indicates that when using 'tool_calls', each 'tool_call_id' must have a corresponding response message. This means that after you make a 'tool_call', you need to ensure that there is a follow-up message that addresses each 'tool_call_id' mentioned.
To resolve this, check your message sequence and ensure that every 'tool_call' is followed by a response message that corresponds to the 'tool_call_id' provided. This might involve reviewing the logic in your code that handles these messages to ensure that responses are correctly generated and sent.
If you need further assistance, you might want to look into similar discussions or issues that might have been resolved, such as the ones mentioned in the Lobe Chat discussions [1][2].
To continue talking to Dosu, mention @dosu.
清空会话重试下
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Clear the session and try again
✅ @yitao2020
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
:tada: This issue has been resolved in version 1.29.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
📝 Reference
https://github.com/lobehub/lobe-chat/tree/main/docs/usage/start.zh-CN.mdx
🐛 Feedback
{ "error": { "message": "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_kMEWqPM9YixkzhrJcxFGYnnK", "type": "invalid_request_error", "param": "messages.[46].role", "code": null }, "endpoint": "https://api.openai.com/v1", "provider": "openai" }