This commit is contained in:
greeneclipse committed 2026-10-16 00:55:28 +02:00
1 parent 1e7c7bbfbb
commit feebf7d3c1
12 files changed
+248 -70

No files matched your search

@@ -0,0 +1,9 @@
-- +goose Up
-- Exact per-call cost/cached tokens for the short-lived AI call inspector.
-- Nullable because historical rows did not capture per-call costs.
ALTER TABLE ai_call_logs ADD COLUMN IF NOT EXISTS cached_prompt_tokens INTEGER;
ALTER TABLE ai_call_logs ADD COLUMN IF NOT EXISTS cost_micros BIGINT;
-- +goose Down
ALTER TABLE ai_call_logs DROP COLUMN IF EXISTS cost_micros;
ALTER TABLE ai_call_logs DROP COLUMN IF EXISTS cached_prompt_tokens;