Changes for eveai_chat_client:

- Session Defaults Header clickable
- Document Processing View - show 'Finished Processing' iso 'Processing' to have more logical visual indicators
- TRAICIE_SELECTION_SPECIALIST now no longer shows question to start selection procedure at initialisation.
- Error Messages for adding documents in 'alert'
- Correction of error in Template variable replacement, resulting in missing template variable value
This commit is contained in:
Josako
2025-07-28 22:56:37 +02:00
parent 5e81595622
commit dabf97c96e
5 changed files with 85 additions and 11 deletions

View File

@@ -56,7 +56,11 @@ def replace_variable_in_template(template: str, variable: str, value: str) -> st
Returns:
str: Template with variable placeholder replaced
"""
return template.replace(variable, value or "")
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
def get_embedding_model_and_class(tenant_id, catalog_id, full_embedding_name="mistral.mistral-embed"):