File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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" )));
You can’t perform that action at this time.
0 commit comments