Skip to content

关于LLM上下文压缩的建议 #10978

Open

Description

@zhiq2793-art

Feature Description

希望能开放一下LLM上下文的接口,或者是提供一个可以让用户手动进行压缩的操作

Use Case

用户可以自主进行LLM上下文压缩

Checklist

  • I have searched the Issue list for related features and confirmed this feature idea has never been proposed.
  • The feature I am suggesting is related to AstrBot itself, not to a specific plugin.
  • I have read and agree to the project's Code of Conduct.
  • (Optional) I am willing to submit a PR to help implement this feature.

Activity

  1. added
    enhancement
    on Nov 3, 2026
  2. C10H14N2O5 commented on Nov 7, 2026

    @C10H14N2O5
    Contributor

    你好!这个 Issue 的诉求与我之前提出的 #9281 高度重合。我在 #9795 中实现了其中一部分功能:通过 /compact 命令手动触发当前会话的上下文压缩。

    不过,目前维护者还没有就该功能是否会被采纳给出明确意见,因此我暂时暂停了对该 PR 的进一步跟进,等待维护者反馈。具体说明可以参考这条评论。

    如果你的需求是开放供插件或其他程序调用的 API,而不仅仅是提供手动操作入口,也欢迎补充一下具体使用场景。如果维护者认可将这一功能纳入主线,我可以在现有 PR 的基础上继续实现,或者另开一个 PR 处理 API 部分。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions