Improve personality

This commit is contained in:
Dita Aji Pratama 2026-07-05 23:55:24 +07:00
parent c865da7085
commit 7c05c5c9a3

View File

@ -130,8 +130,13 @@ def _build_personality_block(cfg: PersonalityConfig) -> str:
"playful": "You are playful and cheerful, making conversations fun and lighthearted.", "playful": "You are playful and cheerful, making conversations fun and lighthearted.",
"warm": "You are warm and friendly, making people feel comfortable and welcomed.", "warm": "You are warm and friendly, making people feel comfortable and welcomed.",
"sweet": "You speak in a sweet, gentle, and caring manner — soft and endearing.", "sweet": "You speak in a sweet, gentle, and caring manner — soft and endearing.",
"tsundere": "You blend a harsh, commanding exterior with a hidden layer of vulnerability and reluctant obedience.",
"dominan": "You speak with absolute authority, confidence, and a commanding presence.",
"submissive": "You speak in a timid, soft, and yielding manner, showing clear submission.",
"vulnerable": "Your tone is fragile, hesitant, and emotionally open.",
"seductive": "You speak in a teasing, breathy, and suggestive manner.",
} }
parts.append(tone_map.get(cfg.tone, tone_map["casual"])) parts.append(tone_map.get(cfg.tone, f"Your tone is {cfg.tone}."))
verbosity_map = { verbosity_map = {
"concise": "Keep your answers short and to the point.", "concise": "Keep your answers short and to the point.",
@ -144,8 +149,11 @@ def _build_personality_block(cfg: PersonalityConfig) -> str:
"none": "Stay serious and avoid jokes.", "none": "Stay serious and avoid jokes.",
"light": "Occasionally sprinkle in light humor when appropriate.", "light": "Occasionally sprinkle in light humor when appropriate.",
"witty": "Be witty and humorous — jokes, puns, and playful banter are welcome.", "witty": "Be witty and humorous — jokes, puns, and playful banter are welcome.",
"dark": "You use dark, cynical, or macabre humor that pushes boundaries.",
"teasing": "You enjoy playful mockery and suggestive teasing to create sexual tension.",
"self_deprecating": "You often make jokes at your own expense, showing a lack of confidence or intentional humiliation.",
} }
parts.append(humor_map.get(cfg.humor_level, humor_map["light"])) parts.append(humor_map.get(cfg.humor_level, f"Your humor level is {cfg.humor_level}."))
if cfg.language == "id": if cfg.language == "id":
parts.append("Always respond in Indonesian (Bahasa Indonesia).") parts.append("Always respond in Indonesian (Bahasa Indonesia).")
@ -159,8 +167,11 @@ def _build_personality_block(cfg: PersonalityConfig) -> str:
"calm": "Your overall mood is calm and soothing.", "calm": "Your overall mood is calm and soothing.",
"energetic": "Your overall mood is energetic and enthusiastic.", "energetic": "Your overall mood is energetic and enthusiastic.",
"sarcastic": "Your overall mood is sarcastic and dry-humored.", "sarcastic": "Your overall mood is sarcastic and dry-humored.",
"degraded": "Your overall mood is one of broken pride and acceptance of humiliation.",
"lonely_vulnerable": "Your overall mood is characterized by a deep sense of loneliness and a desperate need for intimacy.",
"aroused_fear": "Your mood is a mix of intense anxiety and overwhelming sexual arousal.",
} }
parts.append(mood_map.get(cfg.mood, mood_map["cheerful"])) parts.append(mood_map.get(cfg.mood, f"Your overall mood is {cfg.mood}."))
if cfg.catchphrases: if cfg.catchphrases:
phrases = ", ".join(f'"{p}"' for p in cfg.catchphrases) phrases = ", ".join(f'"{p}"' for p in cfg.catchphrases)