Model tiers: per-model credits and premium/vip roles

LLM_MODELS entries are now model[=credits][@role]. The default tiers follow
the model comparison rated by an astrologer: Claude Haiku 5.5 (free, 1
credit), GPT-5.6 Terra (premium, 3 credits), Claude Opus 5.5 (vip, 10 credits).
VIP includes premium, admins may use every model.

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-15 20:46:30 +00:00
co-authored by Claude Opus 5.5
parent b30a6c8fb1
commit 4aabb7343c
10 changed files with 180 additions and 29 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ async fn public_config(State(state): St) -> Json<Value> {
"google_login": { "enabled": state.google.enabled(), "client_id": c.google_client_ids.first() },
"locales": c.supported_locales,
"llm_models": c.llm_models,
"analysis_cost": c.analysis_cost,
"default_model": c.llm_models[0].id,
"monthly_free_credits": c.monthly_free_credits,
"password_min_length": crate::auth::MIN_PASSWORD_LEN,
}))