This commit is contained in:
Classic298
2026-01-22 17:30:07 +01:00
committed by GitHub
parent 9af40624c5
commit 5a0488bb18
4 changed files with 29 additions and 8 deletions

View File

@@ -69,6 +69,7 @@ def prompt_template(template: str, user: Optional[Any] = None) -> str:
USER_VARIABLES = {
"name": str(user.get("name")),
"email": str(user.get("email")),
"location": str(user_info.get("location")),
"bio": str(user.get("bio")),
"gender": str(user.get("gender")),
@@ -92,6 +93,9 @@ def prompt_template(template: str, user: Optional[Any] = None) -> str:
template = template.replace("{{CURRENT_WEEKDAY}}", formatted_weekday)
template = template.replace("{{USER_NAME}}", USER_VARIABLES.get("name", "Unknown"))
template = template.replace(
"{{USER_EMAIL}}", USER_VARIABLES.get("email", "Unknown")
)
template = template.replace("{{USER_BIO}}", USER_VARIABLES.get("bio", "Unknown"))
template = template.replace(
"{{USER_GENDER}}", USER_VARIABLES.get("gender", "Unknown")