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
+24
View File
@@ -231,6 +231,30 @@ export interface AdminUser {
export type PromptKind = "summary" | "natal" | "synastry" | "forecast";
/** Admin: the model writing one kind of analysis. */
export interface ModelFunction {
kind: PromptKind;
model: string;
/** The configured default (environment). */
default: string;
custom: boolean;
updated_at: string | null;
updated_by: string | null;
/** Average size of the latest analyses of this kind, for the cost estimate. */
avg_input_tokens: number | null;
avg_output_tokens: number | null;
samples: number;
}
/** A model OpenRouter offers; prices in USD per million tokens. */
export interface CatalogModel {
id: string;
name: string;
input_per_million: number;
output_per_million: number;
context_length: number | null;
}
export interface PromptRevision {
id: number;
custom: boolean;