Skip to content

Commit 4750bb8

Browse files
committed
OSS generator on customer facing orchestration spec
- Introduce a generic fallback and LLMModuleResult specific deserializers. - Generator ignoring all interfaces - Adapt jackson annotations
1 parent c466d52 commit 4750bb8

33 files changed

+98
-86
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@
2626
.java-version
2727

2828
### Environment ###
29-
*.env
29+
*.env
30+
31+
.openapi-generator

orchestration/.openapi-generator/orchestration.yaml-default.sha256

Lines changed: 0 additions & 1 deletion
This file was deleted.

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
})
2727
@javax.annotation.Generated(
2828
value = "org.openapitools.codegen.languages.JavaClientCodegen",
29-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
29+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
3030
comments = "Generator version: 7.9.0")
3131
public class AzureContentSafety {
3232
public static final String JSON_PROPERTY_HATE = "Hate";

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafetyFilterConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
})
2727
@javax.annotation.Generated(
2828
value = "org.openapitools.codegen.languages.JavaClientCodegen",
29-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
29+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
3030
comments = "Generator version: 7.9.0")
3131
public class AzureContentSafetyFilterConfig implements FilterConfig {
3232
/** String represents name of the filter provider */

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureThreshold.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Internal Orchestration Service API
3-
* SAP AI Core - Orchestration Service API
2+
* Orchestration
3+
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
44
*
5-
* The version of the OpenAPI document: 0.0.1
5+
* The version of the OpenAPI document: 0.29.3
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,7 +15,10 @@
1515
import com.fasterxml.jackson.annotation.JsonCreator;
1616
import com.fasterxml.jackson.annotation.JsonValue;
1717

18-
/** Gets or Sets AzureThreshold */
18+
/**
19+
* Threshold for the filter. Setting it to `0` blocks content with low severity, whereas
20+
* `6` is the most permissive and blocks only the highest severity
21+
*/
1922
public enum AzureThreshold {
2023
NUMBER_0(0),
2124

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatDelta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@JsonPropertyOrder({ChatDelta.JSON_PROPERTY_ROLE, ChatDelta.JSON_PROPERTY_CONTENT})
2222
@javax.annotation.Generated(
2323
value = "org.openapitools.codegen.languages.JavaClientCodegen",
24-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
24+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
2525
comments = "Generator version: 7.9.0")
2626
public class ChatDelta {
2727
public static final String JSON_PROPERTY_ROLE = "role";

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@JsonPropertyOrder({ChatMessage.JSON_PROPERTY_ROLE, ChatMessage.JSON_PROPERTY_CONTENT})
2222
@javax.annotation.Generated(
2323
value = "org.openapitools.codegen.languages.JavaClientCodegen",
24-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
24+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
2525
comments = "Generator version: 7.9.0")
2626
public class ChatMessage {
2727
public static final String JSON_PROPERTY_ROLE = "role";

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
})
3030
@javax.annotation.Generated(
3131
value = "org.openapitools.codegen.languages.JavaClientCodegen",
32-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
32+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
3333
comments = "Generator version: 7.9.0")
3434
public class CompletionPostRequest {
3535
public static final String JSON_PROPERTY_ORCHESTRATION_CONFIG = "orchestration_config";

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
})
2626
@javax.annotation.Generated(
2727
value = "org.openapitools.codegen.languages.JavaClientCodegen",
28-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
28+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
2929
comments = "Generator version: 7.9.0")
3030
public class CompletionPostResponse {
3131
public static final String JSON_PROPERTY_REQUEST_ID = "request_id";

orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponseStreaming.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
})
2626
@javax.annotation.Generated(
2727
value = "org.openapitools.codegen.languages.JavaClientCodegen",
28-
date = "2024-11-08T15:36:05.863594+01:00[Europe/Berlin]",
28+
date = "2024-11-08T17:17:51.177015+01:00[Europe/Berlin]",
2929
comments = "Generator version: 7.9.0")
3030
public class CompletionPostResponseStreaming {
3131
public static final String JSON_PROPERTY_REQUEST_ID = "request_id";

0 commit comments

Comments
 (0)