Manage the KV cache disc usage from preferences and stats

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Georg Bauer
2026-07-26 09:10:18 +02:00
parent b182e7007c
commit 63e2a74ad5
14 changed files with 794 additions and 35 deletions

View File

@@ -0,0 +1,4 @@
ALTER TABLE preferences DROP COLUMN kv_continued_interval_tokens;
ALTER TABLE preferences DROP COLUMN kv_cold_max_tokens;
ALTER TABLE preferences DROP COLUMN kv_min_tokens;
ALTER TABLE preferences DROP COLUMN kv_budget_gib;

View File

@@ -0,0 +1,4 @@
ALTER TABLE preferences ADD COLUMN kv_budget_gib BIGINT;
ALTER TABLE preferences ADD COLUMN kv_min_tokens INTEGER;
ALTER TABLE preferences ADD COLUMN kv_cold_max_tokens INTEGER;
ALTER TABLE preferences ADD COLUMN kv_continued_interval_tokens INTEGER;