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
+4 -6
View File
@@ -91,25 +91,23 @@ pub async fn run(state: &AppState) -> anyhow::Result<()> {
tracing::info!(count = forecast_hashes.len(), "forecasts recalculated");
let deleted = sqlx::query("DELETE FROM analyses").execute(db).await?.rows_affected();
let summary_model = &state.config.summary_model;
let analysis_model = &state.config.analysis_model;
let mut queued = 0;
for c in &charts {
let language = locale(db, c.owner_id).await?;
let summary = Target::Summary { chart_id: c.id, hash: c.chart_hash.clone() };
queue(state, c.owner_id, &summary, &language, summary_model, None).await?;
queue(state, c.owner_id, &summary, &language, None).await?;
let natal = Target::Natal { chart_id: c.id, hash: c.chart_hash.clone() };
queue(state, c.owner_id, &natal, &language, analysis_model, None).await?;
queue(state, c.owner_id, &natal, &language, None).await?;
queued += 2;
}
for (synastry_id, owner, hash) in synastry_hashes {
let target = Target::Synastry { synastry_id, hash };
queue(state, owner, &target, &locale(db, owner).await?, analysis_model, None).await?;
queue(state, owner, &target, &locale(db, owner).await?, None).await?;
queued += 1;
}
for (forecast_id, owner, hash) in forecast_hashes {
let target = Target::Forecast { forecast_id, hash };
queue(state, owner, &target, &locale(db, owner).await?, analysis_model, None).await?;
queue(state, owner, &target, &locale(db, owner).await?, None).await?;
queued += 1;
}
tracing::info!(deleted, queued, "analyses queued again");