Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

6.6 KB
Raw Blame
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1080" viewBox="0 0 1600 1080"><defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="7" refY="4" orient="auto"><path d="M 0 0 L 8 4 L 0 8 Z" fill="#AAA1BE"/></marker></defs><g font-family="PingFang SC,Microsoft YaHei,Arial,sans-serif"><rect x="0" y="0" width="1600" height="1080" rx="0" fill="#FFFFFF" stroke="none" stroke-width="2"/><rect x="56" y="38" width="505" height="47" rx="23" fill="#F1ECFF" stroke="none" stroke-width="2"/><text x="79" y="70" font-size="25" fill="#6942D8" font-weight="600">HiRoute · 上下文保持 ContextHold</text><text x="56" y="148" font-size="46" fill="#15203A" font-weight="700">上下文保持:兼顾智能换模与 KV Cache 高命中</text><text x="56" y="195" font-size="28" fill="#647086" font-weight="400">同一段连续上下文内稳住模型;上下文重建后,再按需选择。</text><rect x="56" y="241" width="469" height="429" rx="22" fill="#F8F6FE" stroke="#E2D9F8" stroke-width="2"/><text x="81" y="290" font-size="30" fill="#5834BB" font-weight="700">01  重建前 · 模型 A</text><text x="81" y="332" font-size="25" fill="#69738A" font-weight="400">同轮工具调用,历史不断追加</text><rect x="82" y="374" width="165" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="91" y="409" font-size="21" fill="#FFFFFF" font-weight="500">原有上下文</text><rect x="253" y="374" width="65" height="53" rx="9" fill="#E8DEFF" stroke="none" stroke-width="2"/><text x="262" y="409" font-size="21" fill="#5F40AB" font-weight="500">输入</text><rect x="82" y="453" width="165" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="91" y="488" font-size="21" fill="#FFFFFF" font-weight="500">原有上下文</text><rect x="253" y="453" width="65" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="262" y="488" font-size="21" fill="#FFFFFF" font-weight="500">输入</text><rect x="324" y="453" width="80" height="53" rx="9" fill="#E8DEFF" stroke="none" stroke-width="2"/><text x="333" y="488" font-size="21" fill="#5F40AB" font-weight="500">工具①</text><rect x="82" y="532" width="165" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="91" y="567" font-size="21" fill="#FFFFFF" font-weight="500">原有上下文</text><rect x="253" y="532" width="65" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="262" y="567" font-size="21" fill="#FFFFFF" font-weight="500">输入</text><rect x="324" y="532" width="80" height="53" rx="9" fill="#7754D7" stroke="none" stroke-width="2"/><text x="333" y="567" font-size="21" fill="#FFFFFF" font-weight="500">工具①</text><rect x="410" y="532" width="80" height="53" rx="9" fill="#E8DEFF" stroke="none" stroke-width="2"/><text x="419" y="567" font-size="21" fill="#5F40AB" font-weight="500">工具②</text><text x="82" y="626" font-size="24" fill="#5834BB" font-weight="600">稳定模型,持续复用 KV Cache</text><path d="M 535 451 L 571 451" fill="none" stroke="#AAA1BE" stroke-width="3" marker-end="url(#arrow)"/><rect x="590" y="241" width="418" height="429" rx="22" fill="#FAFBFD" stroke="#DFE4EE" stroke-width="2"/><text x="615" y="290" font-size="30" fill="#25334D" font-weight="700">02  上下文重建边界</text><text x="615" y="332" font-size="25" fill="#69738A" font-weight="400">压缩或重建历史后无法续接</text><rect x="615" y="369" width="367" height="58" rx="10" fill="#ECEEF4" stroke="none" stroke-width="2"/><text x="637" y="407" font-size="27" fill="#58647A" font-weight="600">旧前缀 → 新前缀</text><text x="615" y="472" font-size="25" fill="#37435C" font-weight="600">旧的完整前缀无法继续复用</text><text x="615" y="514" font-size="25" fill="#69738A" font-weight="400">即使继续同一模型也一样</text><rect x="615" y="552" width="367" height="80" rx="14" fill="#F0EAFE" stroke="none" stroke-width="2"/><text x="636" y="585" font-size="27" fill="#6542C3" font-weight="600">此时,重新判断</text><text x="636" y="619" font-size="27" fill="#6542C3" font-weight="600">接下来适合的模型</text><path d="M 1018 451 L 1054 451" fill="none" stroke="#AAA1BE" stroke-width="3" marker-end="url(#arrow)"/><rect x="1073" y="241" width="471" height="429" rx="22" fill="#F0FAF7" stroke="#CDE9DF" stroke-width="2"/><text x="1098" y="290" font-size="29" fill="#217D6B" font-weight="700">03  重建后 · 新的前缀</text><rect x="1098" y="320" width="178" height="49" rx="22" fill="#E1F2EB" stroke="none" stroke-width="2"/><text x="1128" y="354" font-size="27" fill="#217D6B" font-weight="600">继续 A</text><text x="1291" y="354" font-size="24" fill="#7C8E87" font-weight="400">或</text><rect x="1331" y="320" width="181" height="49" rx="22" fill="#E1F2EB" stroke="none" stroke-width="2"/><text x="1361" y="354" font-size="27" fill="#217D6B" font-weight="600">选择 B</text><text x="1098" y="418" font-size="23" fill="#3C6F62" font-weight="600">沿着新前缀,继续积累缓存命中</text><rect x="1098" y="454" width="255" height="53" rx="9" fill="#298F7A" stroke="none" stroke-width="2"/><text x="1118" y="489" font-size="24" fill="#FFFFFF" font-weight="500">新的上下文</text><rect x="1098" y="530" width="255" height="53" rx="9" fill="#298F7A" stroke="none" stroke-width="2"/><text x="1118" y="565" font-size="24" fill="#FFFFFF" font-weight="500">新的上下文</text><rect x="1360" y="530" width="153" height="53" rx="9" fill="#D5EEE6" stroke="none" stroke-width="2"/><text x="1374" y="565" font-size="24" fill="#217D6B" font-weight="500">新增内容</text><text x="1098" y="627" font-size="23" fill="#217D6B" font-weight="600">随后保持模型,持续复用缓存</text><rect x="56" y="707" width="1488" height="87" rx="18" fill="#F5F2FD" stroke="none" stroke-width="2"/><text x="86" y="763" font-size="34" fill="#5735B7" font-weight="600">前缀连续时保持高命中,前缀重建时按需换模型。</text><rect x="56" y="828" width="1488" height="125" rx="18" fill="#FAFBFD" stroke="#E5E9F0" stroke-width="2"/><text x="82" y="873" font-size="28" fill="#33425A" font-weight="600">另一类决策点:新用户请求</text><text x="82" y="918" font-size="25" fill="#69738A" font-weight="400">新用户请求也会重新决策;仅追加新消息时,继续原模型仍可能复用旧前缀。</text><text x="56" y="1001" font-size="24" fill="#7B8495" font-weight="400">同模型仍可能复用未变化的公共前缀,图示不代表所有缓存都失效。</text><text x="56" y="1040" font-size="24" fill="#7B8495" font-weight="400">不同模型不共享 KV Cache,实际命中取决于模型服务与配置。</text></g></svg>