feat: 让 /ds 在群内共享上下文 - #48
Closed
riesaexe wants to merge 1 commit into
Closed
Conversation
- Replace nonebot-plugin-deepseek with local src/plugins/deepseek plugin - Share conversation history within the same group across all users - Isolate contexts between different groups/private chats - Trim history to DEEPSEEK__MAX_HISTORY (default 20) messages - Add /ds reset to clear current session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动动机
目前每次使用
/ds提问都会新建一个会话,导致新的提问无法引用群内之前的讨论内容。主要改动
src/plugins/deepseek替换nonebot-plugin-deepseek外部依赖。DEEPSEEK__MAX_HISTORY(默认 20 条)时,自动保留最近的消息。/ds reset//deepseek reset用于手动重置当前会话。配置项
测试
ruff check src/plugins/deepseek通过。pyright src/plugins/deepseek通过。/ds reset可清空会话。注意
此改动会移除原
nonebot-plugin-deepseek提供的余额查询、TTS、Markdown 转图片等子命令。如果项目仍需要这些功能,可以在后续迭代中补齐。