Hungarian prompts in Hungarian, model choice per analysis kind, admin regenerate
- 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:
@@ -400,8 +400,10 @@ mod analyses {
|
||||
assert_eq!(body["provider"]["require_parameters"], true);
|
||||
let system = body["messages"][0]["content"].as_str().unwrap();
|
||||
let user = body["messages"][1]["content"].as_str().unwrap();
|
||||
assert!(system.contains("Write in Hungarian.") && system.contains("Szaturnusz"));
|
||||
assert!(user.contains("- Sun: Pisces 24°42', house 8") && user.contains("- personality: "));
|
||||
assert!(system.contains("Magyarul írj") && system.contains("Szaturnusz"));
|
||||
assert!(
|
||||
user.contains("- Sun: Pisces 24°42', house 8") && user.contains("- personality: Az alapvető identitás")
|
||||
);
|
||||
// No birth data in the prompt.
|
||||
for secret in ["1990", "14:30", "Szeged", "Hungary"] {
|
||||
assert!(!user.contains(secret) && !system.contains(secret), "{secret} leaked");
|
||||
|
||||
Reference in New Issue
Block a user