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:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user