231_add_usage_log_requested_reasoning_effort.sql 483 B

1234567
  1. -- Persist the client-requested reasoning effort before group policy rewriting
  2. -- and model-family remapping (e.g. max -> xhigh). NULL means historical rows
  3. -- written before this dual-write, or requests that never declared an effort.
  4. --
  5. -- Nullable with no default: on PostgreSQL 11+ this is a metadata-only change
  6. -- and does not rewrite the (potentially large, partitioned) usage_logs table.
  7. ALTER TABLE usage_logs ADD COLUMN IF NOT EXISTS requested_reasoning_effort VARCHAR(20);