Models: one for analyses and forecasts, one for answers; Opus 5.5 default and fallback
CI / test (push) Successful in 1m1s
CI / build (push) Successful in 4m56s
CI / deploy (push) Skipped

- Admin Modellek: summary, analyses + forecast (shared), question-answer (own model)
- Every default is Opus 5.5; when the chosen model fails twice (permanent: once),
  the default model takes over with fresh attempts before the unit is refunded
- The page shows how often the fallback was needed in the last 30 days

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 21:11:08 +00:00
co-authored by Claude Opus 5.5
parent 5af08ab689
commit 769b4791ae
18 changed files with 370 additions and 138 deletions
+5 -2
View File
@@ -248,9 +248,9 @@ export interface AdminUser {
export type PromptKind = "summary" | "natal" | "synastry" | "forecast" | "question";
/** Admin: the model writing one kind of analysis. */
/** Admin: the model of one function (all analyses and forecasts, answers, the short summary). */
export interface ModelFunction {
kind: PromptKind;
kind: "summary" | "analysis" | "question";
model: string;
/** The configured default (environment). */
default: string;
@@ -261,6 +261,9 @@ export interface ModelFunction {
avg_input_tokens: number | null;
avg_output_tokens: number | null;
samples: number;
/** In the last 30 days: texts the default model had to write, of all finished. */
fallbacks_30d: number;
finished_30d: number;
}
/** A model OpenRouter offers; prices in USD per million tokens. */