Skip to content

Commit e3f27d3

Browse files
Do not re-generate client
1 parent 29d3f39 commit e3f27d3

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

prompt-registry/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<configuration>
126126
<inputSpec>${project.basedir}/src/main/resources/spec/prompt-registry.yaml</inputSpec>
127127
<apiPackage>com.sap.ai.sdk.prompt.registry.client</apiPackage>
128+
<generateApis>false</generateApis>
128129
<modelPackage>com.sap.ai.sdk.prompt.registry.model</modelPackage>
129130
<additionalProperties>
130131
<pojoBuilderMethodName>create</pojoBuilderMethodName>

prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/client/DefaultApi.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ public DefaultApi() {
5858
super(addMixin(new AiCoreService()));
5959
}
6060

61+
/**
62+
* Instantiates this API class to invoke operations on the Prompt Registry API
63+
*
64+
* @param aiCoreService The configured connectivity instance to AI Core
65+
*/
66+
public DefaultApi(@Nonnull final AiCoreService aiCoreService) {
67+
super(addMixin(aiCoreService));
68+
}
69+
6170
private static ApiClient addMixin(AiCoreService service) {
6271
var destination = service.getBaseDestination();
6372
var httpRequestFactory = new HttpComponentsClientHttpRequestFactory();
@@ -90,15 +99,6 @@ interface TemplateMixIn {}
9099
interface ResponseFormat {}
91100
}
92101

93-
/**
94-
* Instantiates this API class to invoke operations on the Prompt Registry API
95-
*
96-
* @param aiCoreService The configured connectivity instance to AI Core
97-
*/
98-
public DefaultApi(@Nonnull final AiCoreService aiCoreService) {
99-
super(aiCoreService.getApiClient());
100-
}
101-
102102
/**
103103
* <b>200</b> - Successful response
104104
*

0 commit comments

Comments
 (0)