We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如果有的话,如何请求呢?
The text was updated successfully, but these errors were encountered:
Hey @crazyegg111! I'm here to help you with any issues or questions you have. Feel free to ask me anything!
Langchain-Chatchat 确实支持多轮对话的记忆管理。它通过 ConversationBufferDBMemory 类来管理对话历史。这个类会从数据库中获取消息,维护一个消息缓冲区,并在必要时修剪消息以保持在指定的 token 限制内 [1].
ConversationBufferDBMemory
关于如何请求使用这个功能,虽然具体的 API 请求参数或头信息在文档中没有明确提到,但可以通过设置 --history_len 参数来调整对话历史的长度,从而支持多轮对话 [2].
--history_len
如果需要进一步的实现细节或示例代码,可以查看 conversation_db_buffer_memory.py 文件中的实现 [1].
conversation_db_buffer_memory.py
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
Sorry, something went wrong.
No branches or pull requests
如果有的话,如何请求呢?
The text was updated successfully, but these errors were encountered: