Hungarian prompts in Hungarian, model choice per analysis kind, admin regenerate
CI / test (push) Successful in 57s
CI / build (push) Successful in 4m48s
CI / deploy (push) Skipped

- 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
This commit is contained in:
feco
2026-11-18 13:15:57 +00:00
co-authored by Claude Opus 5.5
parent 23975a8369
commit 27de820091
24 changed files with 981 additions and 71 deletions
+5 -1
View File
@@ -295,7 +295,11 @@ impl Analyzer {
if let Some((Some(user), units, kind)) = row
&& units > 0
{
let unit = if kind == "synastry" { "synastry" } else { "natal" };
let unit = match kind.as_str() {
"synastry" => "synastry",
"forecast" => "forecast",
_ => "natal",
};
sqlx::query(
"INSERT INTO credit_ledger (id, user_id, unit, delta, reason, analysis_id, note) \
VALUES ($1, $2, $3, $4, 'refund', $5, 'analysis failed') ON CONFLICT DO NOTHING",