-- Reusing answers, for a project that asks: how long one is reused, and -- whether any request's answer is, or only those that come out the same -- every time (temperature 0, or a seed). Off for every project until set. -- The answers themselves are held in each gateway's memory, never here. ALTER TABLE projects ADD COLUMN cache_ttl_seconds INTEGER; ALTER TABLE projects ADD COLUMN cache_any INTEGER NOT NULL DEFAULT 0; -- A request answered from that cache: nothing was generated for it, so it -- carries no tokens and costs nothing, and this says why. ALTER TABLE usage ADD COLUMN cache_hit INTEGER NOT NULL DEFAULT 0;