Skip to content
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

多对话管理 #512

Open
mainytht opened this issue Feb 4, 2025 · 1 comment
Open

多对话管理 #512

mainytht opened this issue Feb 4, 2025 · 1 comment

Comments

@mainytht
Copy link

mainytht commented Feb 4, 2025

需求动机

能否点击会话,显示相应的消息列表。现在管理对话好难啊

提议的 API 是什么样的?

No response

Copy link

看起来您在讨论一个关于多对话管理的需求,想要在点击会话时显示相应的消息列表。这个功能确实可以帮助更好地管理对话。

目前,您是否有具体的 API 提议或者想法呢?如果没有,您可以考虑以下几点来设计 API:

  1. 会话列表 API:提供一个接口来获取所有会话的列表,包括会话的基本信息(如会话ID、标题、最后消息时间等)。

  2. 消息列表 API:提供一个接口来获取某个特定会话的消息列表,支持分页加载,以便于处理大量消息。

  3. 会话选择事件:在前端实现一个事件监听,当用户点击某个会话时,触发获取该会话消息列表的请求。

如果您有更多的具体需求或想法,欢迎分享,我可以帮助您进一步完善这个功能的设计。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant