Questions about an analysis or forecast, answered by the model that wrote it
CI / test (push) Successful in 1m5s
CI / build (push) Successful in 4m56s
CI / deploy (push) Skipped

- 3 questions in every package, +5 questions add-on (1 000 Ft); question units, refund on failure
- The answer sees the chart data, the analysis and earlier questions; at most 250 words
- Editable question prompt (Promptok → Kérdés-válasz); admins regenerate answers
- Package texts and FAQ updated

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 18:44:20 +00:00
co-authored by Claude Opus 5.5
parent 22292f533b
commit 182d71fe65
33 changed files with 1233 additions and 59 deletions
@@ -6,7 +6,7 @@ import { api, errorText } from "@/lib/api";
import { formatDate } from "@/lib/astro";
import type { CatalogModel, ModelFunction, PromptKind } from "@/lib/types";
const LABELS: Record<PromptKind, { title: string; about: string }> = {
const LABELS: Record<Exclude<PromptKind, "question">, { title: string; about: string }> = {
summary: { title: "Tömör összefoglaló", about: "Ingyenes, minden új képlethez magától elkészül. Olcsó, gyors modell elég." },
natal: { title: "Részletes képletelemzés", about: "Fizetős, hat fejezet." },
synastry: { title: "Kapcsolati elemzés", about: "Fizetős, öt fejezet két képletről." },
@@ -57,6 +57,9 @@ export function AdminModels() {
{catalogError}
</p>
)}
<p className="hint">
Az elemzésekre feltett kérdésekre mindig ugyanaz a modell válaszol, amelyik az adott elemzést írta.
</p>
{functions.map((f) => (
<FunctionModel key={f.kind} fn={f} catalog={catalog} onSaved={replace} />
))}
@@ -79,7 +82,7 @@ function FunctionModel({
const [error, setError] = useState<string | null>(null);
const current = catalog?.find((m) => m.id === fn.model);
const cost = estimate(fn, current);
const label = LABELS[fn.kind];
const label = LABELS[fn.kind as keyof typeof LABELS];
const searchId = `model-search-${fn.kind}`;
const matches = useMemo(() => {