Flexibles KI Prompt System #48

Merged
Lars merged 56 commits from develop into main 2026-03-26 14:49:48 +01:00
Showing only changes of commit ba92d66880 - Show all commits

View File

@ -380,7 +380,12 @@ async def execute_prompt_with_data(
# This makes old-style prompts work with the new executor # This makes old-style prompts work with the new executor
try: try:
processed_placeholders = get_placeholder_example_values(profile_id) processed_placeholders = get_placeholder_example_values(profile_id)
variables.update(processed_placeholders) # Remove {{ }} from keys (placeholder_resolver returns them with wrappers)
cleaned_placeholders = {
key.replace('{{', '').replace('}}', ''): value
for key, value in processed_placeholders.items()
}
variables.update(cleaned_placeholders)
except Exception as e: except Exception as e:
# Continue even if placeholder resolution fails # Continue even if placeholder resolution fails
if enable_debug: if enable_debug: