- Refinement of the chat client to have better visible clues for user vs chatbot messages
- Introduction of interview_phase and normal phase in TRAICIE_SELECTION_SPECIALIST to make interaction with bot more human. - More and random humanised messages to TRAICIE_SELECTION_SPECIALIST
This commit is contained in:
@@ -57,9 +57,7 @@ def replace_variable_in_template(template: str, variable: str, value: str) -> st
|
||||
str: Template with variable placeholder replaced
|
||||
"""
|
||||
|
||||
current_app.logger.info(f"Replacing variable {variable} with value {value}")
|
||||
modified_template = template.replace(f"{{{variable}}}", value or "")
|
||||
current_app.logger.info(f"Modified template: {modified_template}")
|
||||
return modified_template
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user