We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f7b68 commit 3532ecfCopy full SHA for 3532ecf
spring-ai-template-st/src/main/java/org/springframework/ai/template/st/StTemplateRenderer.java
@@ -128,7 +128,7 @@ private ST createST(String template) {
128
*/
129
private Set<String> validate(ST st, Map<String, Object> templateVariables) {
130
Set<String> templateTokens = getInputVariables(st);
131
- Set<String> modelKeys = templateVariables != null ? templateVariables.keySet() : new HashSet<>();
+ Set<String> modelKeys = templateVariables.keySet();
132
Set<String> missingVariables = new HashSet<>(templateTokens);
133
missingVariables.removeAll(modelKeys);
134
0 commit comments