Skip to content

Commit 3e3a531

Browse files
fixed
1 parent 4a27bb4 commit 3e3a531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/PromptRegistryController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ PromptTemplateListResponse history() {
7070
@GetMapping("/importTemplate")
7171
PromptTemplatePostResponse importTemplate() throws IOException {
7272
final Resource template = new ClassPathResource("prompt-template.yaml");
73-
return client.importPromptTemplate(template.getFile());
73+
return client.importPromptTemplate("default", template.getFile());
7474
}
7575

7676
@GetMapping("/exportTemplate")
@@ -84,6 +84,7 @@ PromptTemplateSubstitutionResponse useTemplate() {
8484
final var template = createTemplate();
8585
return client.parsePromptTemplateById(
8686
template.getId(),
87+
"default",
8788
false,
8889
PromptTemplateSubstitutionRequest.create()
8990
.inputParams(Map.of("inputExample", "I love football")));

0 commit comments

Comments
 (0)