Models: one for analyses and forecasts, one for answers; Opus 5.5 default and fallback
- Admin Modellek: summary, analyses + forecast (shared), question-answer (own model) - Every default is Opus 5.5; when the chosen model fails twice (permanent: once), the default model takes over with fresh attempts before the unit is refunded - The page shows how often the fallback was needed in the last 30 days Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
-- One model for all analyses (natal, synastry, forecast) and a separate one
|
||||
-- for answering questions; the short summary keeps its own.
|
||||
ALTER TABLE model_settings DROP CONSTRAINT model_settings_kind_check;
|
||||
INSERT INTO model_settings (kind, model, updated_by, updated_at)
|
||||
SELECT 'analysis', model, updated_by, updated_at FROM model_settings
|
||||
WHERE kind IN ('natal', 'synastry', 'forecast') ORDER BY updated_at DESC LIMIT 1;
|
||||
DELETE FROM model_settings WHERE kind IN ('natal', 'synastry', 'forecast');
|
||||
ALTER TABLE model_settings ADD CONSTRAINT model_settings_kind_check
|
||||
CHECK (kind IN ('summary', 'analysis', 'question'));
|
||||
|
||||
-- When the chosen model fails, the default model takes over (`on_fallback`).
|
||||
-- NULL: the chosen model is the default, there is nothing to fall back to.
|
||||
ALTER TABLE analyses
|
||||
ADD COLUMN fallback_model text,
|
||||
ADD COLUMN on_fallback boolean NOT NULL DEFAULT false;
|
||||
ALTER TABLE questions
|
||||
ADD COLUMN fallback_model text,
|
||||
ADD COLUMN on_fallback boolean NOT NULL DEFAULT false;
|
||||
Reference in New Issue
Block a user