feat(webui): visualize context usage by logical round (#5649)
* feat(webui): visualize per-request context reuse * refactor(webui): report usage by logical round * fix(webui): align context chart with logical rounds * refactor(webui): derive turn usage from logical rounds * fix(webui): polish context usage details
This commit is contained in:
1 parent
8fb7bc34ec
commit
6b82d642fc
35 files changed
+994
-274
No files matched your search
@@ -33,6 +33,7 @@
|
||||
--input: 40 8% 90.5%;
|
||||
--ring: 0 0% 3.9%;
|
||||
--inline-token-highlight: #ef8e30;
|
||||
--usage-token: 29 86% 56%;
|
||||
--session-handle-lightness: 0.5;
|
||||
--session-handle-chroma: 0.12;
|
||||
--temporary-control-active: #ef8e30;
|
||||
@@ -157,6 +158,36 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.kv-cache-not-reused {
|
||||
background: hsl(var(--usage-token) / 0.84);
|
||||
}
|
||||
|
||||
.kv-cache-reused {
|
||||
background-color: hsl(var(--usage-token) / 0.1);
|
||||
background-image: repeating-linear-gradient(
|
||||
135deg,
|
||||
hsl(var(--usage-token) / 0.46) 0,
|
||||
hsl(var(--usage-token) / 0.46) 1px,
|
||||
transparent 1px,
|
||||
transparent 4px
|
||||
);
|
||||
}
|
||||
|
||||
.dark .kv-cache-not-reused {
|
||||
background: hsl(var(--usage-token) / 0.92);
|
||||
}
|
||||
|
||||
.dark .kv-cache-reused {
|
||||
background-color: hsl(var(--usage-token) / 0.15);
|
||||
background-image: repeating-linear-gradient(
|
||||
135deg,
|
||||
hsl(var(--usage-token) / 0.58) 0,
|
||||
hsl(var(--usage-token) / 0.58) 1px,
|
||||
transparent 1px,
|
||||
transparent 4px
|
||||
);
|
||||
}
|
||||
|
||||
.composer-model-badge::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
||||
Reference in new issue
Block a user