跳到正文
数字商店
原文
Lydia Hallie ✨· @lydiahallie · X·· 2026-10-10AI 评分58
AI 导读

auto-compact 在触发时会将完整对话替换为简短摘要,而非保留最近 1M tokens。在 1M 模型上默认于约 967K tokens 时执行,压缩本身仅发起一次大部分走缓存读取的请求;但等待至 967K 会导致此前每条消息都携带完整对话并计入 token 用量。通过运行 `/autocompact 400k` 可将摘要阈值提前至 400K,防止消息上下文过大。

正文

@wholyv Ah that's not quite what happens, wrote up a short explanation here, hope that helps 🙏

https://t.co/NZlByNXNG4

引用Lydia Hallie ✨@lydiahallie
Just to avoid some confusion: auto-compact does summarize. When it runs, your whole conversation is replaced by a short summary. It doesn't keep the last 1M tokens around. The ~967K is only when it runs on 1M models. Compacting itself is just one request that reads about as many tokens as the message you sent right before it, and it's mostly cache reads if your cache is still warm. What @rohit3a found is that waiting until 967K means every message before that point uses a lot of tokens, because each one includes your whole conversation so far. Most of it is read from the cache, which is much cheaper (so this is usually fine as long as your cache is warm), but it still counts toward your usage and adds up as your conversation grows. /autocompact 400k makes it summarize at 400K instead, so your messages never get that big.
在 X 查看被引用的帖子

来源:Lydia Hallie ✨ · x.com