Commit ·
35a1eaf
1
Parent(s): 65016d2
- Adding banned list for guitareo
Browse files
Config_files/message_system_config.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
| 19 |
],
|
| 20 |
"AI_Jargon": ["elevate", "enhance", "ignite", "reignite", "rekindle", "rediscover","passion", "boost", "fuel", "thrill", "revive", "spark", "performing", "fresh", "tone", "enthusiasm", "illuminate"],
|
| 21 |
"AI_phrases_singeo": ["your voice deserves more"],
|
|
|
|
| 22 |
"header_limit": 30,
|
| 23 |
"message_limit": 110,
|
| 24 |
"LLM_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-mini", "gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.0-flash", "gpt-5-mini", "gpt-5-nano","claude-3-5-haiku-latest", "google/gemma-3-27b-instruct/bf-16"],
|
|
|
|
| 19 |
],
|
| 20 |
"AI_Jargon": ["elevate", "enhance", "ignite", "reignite", "rekindle", "rediscover","passion", "boost", "fuel", "thrill", "revive", "spark", "performing", "fresh", "tone", "enthusiasm", "illuminate"],
|
| 21 |
"AI_phrases_singeo": ["your voice deserves more"],
|
| 22 |
+
"AI_phrases_guitareo": ["strum"],
|
| 23 |
"header_limit": 30,
|
| 24 |
"message_limit": 110,
|
| 25 |
"LLM_models": ["gpt-4o-mini", "gpt-4o", "gpt-4.1-mini", "gemini-2.5-flash-lite", "gemini-2.5-flash", "gemini-2.0-flash", "gpt-5-mini", "gpt-5-nano","claude-3-5-haiku-latest", "google/gemma-3-27b-instruct/bf-16"],
|
Messaging_system/Message_generator.py
CHANGED
|
@@ -174,7 +174,7 @@ class MessageGenerator:
|
|
| 174 |
:return: instructions as string
|
| 175 |
"""
|
| 176 |
|
| 177 |
-
jargon_list = "\n".join(f"- {word}" for word in self.Core.config_file["
|
| 178 |
|
| 179 |
if self.Core.personalization:
|
| 180 |
instructions = f"""
|
|
@@ -182,14 +182,17 @@ Your task is to select the best 'header' and a 'message' for a {self.Core.get_in
|
|
| 182 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable.
|
| 183 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 184 |
|
| 185 |
-
Don't use below phrases:
|
| 186 |
-
|
| 187 |
"""
|
| 188 |
|
| 189 |
else:
|
| 190 |
instructions = f"""
|
| 191 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 192 |
DO NOT **change** or **modify** or **add to** the selected option in any shape or form. **Use the exact original selected header and message without ANY change**
|
|
|
|
|
|
|
|
|
|
| 193 |
"""
|
| 194 |
|
| 195 |
return instructions
|
|
|
|
| 174 |
:return: instructions as string
|
| 175 |
"""
|
| 176 |
|
| 177 |
+
jargon_list = "\n".join(f"- {word}" for word in self.Core.config_file[f"AI_phrases_{self.Core.brand}"])
|
| 178 |
|
| 179 |
if self.Core.personalization:
|
| 180 |
instructions = f"""
|
|
|
|
| 182 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable.
|
| 183 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 184 |
|
| 185 |
+
# Don't use below phrases ot words:
|
| 186 |
+
{jargon_list}
|
| 187 |
"""
|
| 188 |
|
| 189 |
else:
|
| 190 |
instructions = f"""
|
| 191 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 192 |
DO NOT **change** or **modify** or **add to** the selected option in any shape or form. **Use the exact original selected header and message without ANY change**
|
| 193 |
+
|
| 194 |
+
# Don't use below phrases ot words:
|
| 195 |
+
{jargon_list}
|
| 196 |
"""
|
| 197 |
|
| 198 |
return instructions
|
Messaging_system/MultiMessage.py
CHANGED
|
@@ -433,7 +433,7 @@ We have previously sent these push notifications to the user and The user has no
|
|
| 433 |
:return: instructions as string
|
| 434 |
"""
|
| 435 |
|
| 436 |
-
jargon_list = "\n".join(f"- {word}" for word in self.Core.config_file["
|
| 437 |
|
| 438 |
if self.Core.personalization:
|
| 439 |
instructions = f"""
|
|
@@ -441,14 +441,17 @@ Your task is to select the best 'header' and a 'message' for a {self.Core.get_in
|
|
| 441 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable.
|
| 442 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 443 |
|
| 444 |
-
Don't use below phrases:
|
| 445 |
-
|
| 446 |
"""
|
| 447 |
|
| 448 |
else:
|
| 449 |
instructions = f"""
|
| 450 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 451 |
DO NOT **change** or **modify** or **add to** the selected option in any shape or form. **Use the exact original selected header and message without ANY change**
|
|
|
|
|
|
|
|
|
|
| 452 |
"""
|
| 453 |
|
| 454 |
|
|
|
|
| 433 |
:return: instructions as string
|
| 434 |
"""
|
| 435 |
|
| 436 |
+
jargon_list = "\n".join(f"- {word}" for word in self.Core.config_file[f"AI_phrases_{self.Core.brand}"])
|
| 437 |
|
| 438 |
if self.Core.personalization:
|
| 439 |
instructions = f"""
|
|
|
|
| 441 |
Based on the user instructions, you might need to **modify the selected option** very minimal and slightly to improve personalization if capable.
|
| 442 |
**Important Note**: header < {self.Core.config_file["header_limit"]} and message < {self.Core.config_file["message_limit"]} characters.
|
| 443 |
|
| 444 |
+
Don't use below phrases ot words:
|
| 445 |
+
{jargon_list}
|
| 446 |
"""
|
| 447 |
|
| 448 |
else:
|
| 449 |
instructions = f"""
|
| 450 |
Your task is to select the best 'header' and a 'message' for a {self.Core.get_instrument()} student as a push notification.
|
| 451 |
DO NOT **change** or **modify** or **add to** the selected option in any shape or form. **Use the exact original selected header and message without ANY change**
|
| 452 |
+
|
| 453 |
+
Don't use below phrases ot words:
|
| 454 |
+
{jargon_list}
|
| 455 |
"""
|
| 456 |
|
| 457 |
|