This commit is contained in:
Saifeddine ALOUI 2024-12-15 02:21:38 +01:00
parent 759810a349
commit 89eb98ff98

View File

@ -3226,6 +3226,8 @@ class APScript(StateMachine):
output_data = {} output_data = {}
for field, field_info in template.items(): for field, field_info in template.items():
output_data[field] = field_info.get("default", f'[{field_info.get(f"prompt","")}]') 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: if single_shot:
# Generate all content at once for powerful LLMs # Generate all content at once for powerful LLMs