refactor: remove summary text from prefix_cache, leave bottom space for subtitles

This commit is contained in:
ViperEkura 2026-05-07 23:21:57 +08:00
parent 01ccf192ea
commit 740e766e99
1 changed files with 2 additions and 3 deletions

View File

@ -110,10 +110,9 @@ class PrefixCache(Scene):
# ── summary below tree (tree stays visible) ── # ── summary below tree (tree stays visible) ──
summary = VGroup( summary = VGroup(
Text("KV cache reuse across requests", font_size=26, color=GREEN), Text("KV cache reuse across requests", font_size=26, color=GREEN)
Text("First-token latency: up to 50% reduction", font_size=18, color=GRAY),
).arrange(DOWN, buff=0.2) ).arrange(DOWN, buff=0.2)
summary.to_edge(DOWN, buff=0.5) summary.to_edge(DOWN, buff=1.0)
self.play(Write(summary)) self.play(Write(summary))
self.wait(2) self.wait(2)
self.play(*[FadeOut(m) for m in self.mobjects]) self.play(*[FadeOut(m) for m in self.mobjects])