Files
sub2api/backend/migrations/174_add_usage_log_long_context_billing.sql
T

5 lines
271 B
SQL
Raw Normal View History

-- Snapshot whether long-context pricing changed token prices for a request so
-- usage history can explain the applied charge without inferring from totals.
ALTER TABLE usage_logs
ADD COLUMN IF NOT EXISTS long_context_billing_applied BOOLEAN NOT NULL DEFAULT FALSE;