Closed
Description
Description
When using SystemPromptTemplate
in Spring AI, any usage of double curly braces like {{ this is my line }}
gets removed entirely in the final output, instead of escaping to { this is my line }
or remaining as-is.
Sample code
String template = "{{ this is my line }}";
SystemPromptTemplate promptTemplate = new SystemPromptTemplate(template);
String result = promptTemplate.create(Map.of()).getContents();
System.out.println(result);
Expected Output
{ this is my line }
Actual Output
this is my line
Metadata
Metadata
Assignees
Labels
No labels