Skip to content

Commit 81b7ac9

Browse files
authored
format
1 parent 955a081 commit 81b7ac9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spring-ai-core/src/main/java/org/springframework/ai/chat/prompt/PromptTemplate.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public PromptTemplate(String template, Map<String, Object> model) {
7171
for (Entry<String, Object> entry : model.entrySet()) {
7272
add(entry.getKey(), entry.getValue());
7373
}
74-
} catch (Exception ex) {
74+
}
75+
catch (Exception ex) {
7576
throw new IllegalArgumentException("The template string is not valid.", ex);
7677
}
7778
}
@@ -80,7 +81,8 @@ private static String readTemplateFromResource(Resource resource) {
8081
Assert.notNull(resource, "resource must not be null");
8182
try (InputStream inputStream = resource.getInputStream()) {
8283
return StreamUtils.copyToString(inputStream, Charset.defaultCharset());
83-
} catch (IOException ex) {
84+
}
85+
catch (IOException ex) {
8486
throw new RuntimeException("Failed to read resource", ex);
8587
}
8688
}

0 commit comments

Comments
 (0)