mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-10-07 08:47:17 +02:00
escape braces
This commit is contained in:
1 parent
047c161006
commit
51e966e1ec
18 files changed
+31631
-2
No files matched your search
@@ -65,8 +65,9 @@ class ReflexionSecurityGuardrailsService(
|
||||
"Generated Completion:",
|
||||
f"'{original_completion}'"
|
||||
]
|
||||
|
||||
return "\n".join(context_parts)
|
||||
context = "\n".join(context_parts)
|
||||
escaped_context = context.replace("{", "{{").replace("}", "}}")
|
||||
return escaped_context
|
||||
|
||||
def _get_template(self, text_generation_completion_result: AbstractTextGenerationCompletionResult) -> StringPromptTemplate:
|
||||
prompt_template: StringPromptTemplate = self.prompt_template_service.get(
|
||||
|
||||
Reference in new issue
Block a user