lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Qwen / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS/Plugins/Artifacts). One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
47.17k stars 10.37k forks source link

使用dall e3 出现这个报错 #4470

Closed yitao2020 closed 3 weeks ago

yitao2020 commented 1 month ago

📝 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" }

lobehubbot commented 1 month 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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

dosubot[bot] commented 1 month ago

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.

arvinxx commented 1 month ago

清空会话重试下

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Clear the session and try again

lobehubbot commented 3 weeks ago

✅ @yitao2020

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot commented 3 weeks ago

:tada: This issue has been resolved in version 1.29.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: