Files
sorsfonalak/crates/db/migrations/0017_model_settings.sql
T
fecoandClaude Opus 5.5 27de820091
CI / test (push) Successful in 57s
CI / build (push) Successful in 4m48s
CI / deploy (push) Skipped
Hungarian prompts in Hungarian, model choice per analysis kind, admin regenerate
- The built-in Hungarian system prompts and the user message frame are written in Hungarian
- Admin page Modellek: the model of each analysis kind, chosen from the OpenRouter list
  (structured-output models only) with prices and a cost estimate per analysis
- Admin: regenerate any analysis in place with the current prompt and model (no charge)
- Fix: a failed forecast analysis refunds a forecast unit, not a natal one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-18 13:15:57 +00:00

9 lines
454 B
SQL

-- The model writing each kind of analysis, chosen on the admin page. Without
-- a row the backend's default (ANALYSIS_MODEL, SUMMARY_MODEL) is used.
CREATE TABLE model_settings (
kind text PRIMARY KEY CHECK (kind IN ('summary', 'natal', 'synastry', 'forecast')),
model text NOT NULL CHECK (length(model) BETWEEN 3 AND 200),
updated_by uuid REFERENCES users ON DELETE SET NULL,
updated_at timestamptz NOT NULL DEFAULT now()
);