From 89eb98ff98ca034a3bbc19cb6d074de06722edae Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sun, 15 Dec 2024 02:21:38 +0100 Subject: [PATCH] update --- lollms/personality.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lollms/personality.py b/lollms/personality.py index 949429f..91bd5ee 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -3226,6 +3226,8 @@ class APScript(StateMachine): output_data = {} for field, field_info in template.items(): output_data[field] = field_info.get("default", f'[{field_info.get(f"prompt","")}]') + if output_data[field] == '': + output_data[field] = f'[{field_info.get(f"prompt","")}]' if single_shot: # Generate all content at once for powerful LLMs