Skip to content

Commit b0d9f19

Browse files
release notes
1 parent c6e7528 commit b0d9f19

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

core-services/prompt-registry/src/test/java/com/sap/ai/sdk/prompt/registry/spring/SpringAiConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void testPromptRegistryToSpringAi() {
3636
"0.0.1",
3737
"java-e2e-test",
3838
"default",
39-
"false",
39+
null,
4040
false,
4141
PromptTemplateSubstitutionRequest.create()
4242
.inputParams(Map.of("inputExample", "I love football")));
@@ -59,7 +59,7 @@ void testInvalidRoleThrowsException() {
5959
"0.0.1",
6060
"error",
6161
"default",
62-
"false",
62+
null,
6363
false,
6464
PromptTemplateSubstitutionRequest.create()
6565
.inputParams(Map.of("inputExample", "I love football")));

docs/release_notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
### 🔧 Compatibility Notes
1010

11-
- [Prompt Registry] `Template` has been renamed to `PromptTemplate`.
11+
- [Prompt Registry] breaking changes:
12+
- `Template` has been renamed to `PromptTemplate`.
13+
- Some endpoints have a new parameter `String aiResourceGroupScope` which can be set to `null`.
14+
For more details please refer to the [sample code](https://github.com/SAP/ai-sdk-java/blob/main/sample-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/PromptRegistryController.java).
1215

1316
### ✨ New Functionality
1417

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PromptTemplateListResponse history() {
8282
@GetMapping("/importTemplate")
8383
PromptTemplatePostResponse importTemplate() throws IOException {
8484
final Resource template = new ClassPathResource("prompt-template.yaml");
85-
return client.importPromptTemplate("default", "false", template.getFile());
85+
return client.importPromptTemplate("default", null, template.getFile());
8686
}
8787

8888
@GetMapping("/exportTemplate")
@@ -97,7 +97,7 @@ PromptTemplateSubstitutionResponse useTemplate() {
9797
return client.parsePromptTemplateById(
9898
template.getId(),
9999
"default",
100-
"false",
100+
null,
101101
false,
102102
PromptTemplateSubstitutionRequest.create()
103103
.inputParams(Map.of("inputExample", "I love football")));
@@ -128,7 +128,7 @@ Generation promptRegistryToSpringAi() {
128128
"0.0.1",
129129
"java-e2e-test",
130130
"default",
131-
"false",
131+
null,
132132
false,
133133
PromptTemplateSubstitutionRequest.create()
134134
.inputParams(Map.of("inputExample", "I love football")));

0 commit comments

Comments
 (0)