Skip to content

Commit 65f770e

Browse files
author
I750911
committed
regenerated model after spec update
1 parent 8100c5a commit 65f770e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1317
-71
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,10 +16,7 @@
1616
import com.fasterxml.jackson.annotation.JsonValue;
1717
import javax.annotation.Nonnull;
1818

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,7 +27,7 @@
2727

2828
/** ChatMessage */
2929
@Beta // CHECKSTYLE:OFF
30-
public class ChatMessage
30+
public class ChatMessage implements ChatMessagesInner
3131
// CHECKSTYLE:ON
3232
{
3333
@JsonProperty("role")
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
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.
4+
*
5+
* The version of the OpenAPI document: 0.43.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.sap.ai.sdk.orchestration.model;
14+
15+
import com.fasterxml.jackson.annotation.JsonSubTypes;
16+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
17+
18+
/** ChatMessagesInner */
19+
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
20+
@JsonSubTypes({
21+
@JsonSubTypes.Type(value = ChatMessage.class),
22+
@JsonSubTypes.Type(value = MultiChatMessage.class),
23+
})
24+
public interface ChatMessagesInner {}

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,7 +40,7 @@ public class CompletionPostRequest
4040
private Map<String, String> inputParams = new HashMap<>();
4141

4242
@JsonProperty("messages_history")
43-
private List<ChatMessage> messagesHistory;
43+
private List<ChatMessagesInner> messagesHistory;
4444

4545
@JsonAnySetter @JsonAnyGetter
4646
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
@@ -140,7 +140,8 @@ public void setInputParams(@Nullable final Map<String, String> inputParams) {
140140
* @return The same instance of this {@link CompletionPostRequest} class
141141
*/
142142
@Nonnull
143-
public CompletionPostRequest messagesHistory(@Nullable final List<ChatMessage> messagesHistory) {
143+
public CompletionPostRequest messagesHistory(
144+
@Nullable final List<ChatMessagesInner> messagesHistory) {
144145
this.messagesHistory = messagesHistory;
145146
return this;
146147
}
@@ -153,7 +154,7 @@ public CompletionPostRequest messagesHistory(@Nullable final List<ChatMessage> m
153154
*/
154155
@Nonnull
155156
public CompletionPostRequest addMessagesHistoryItem(
156-
@Nonnull final ChatMessage messagesHistoryItem) {
157+
@Nonnull final ChatMessagesInner messagesHistoryItem) {
157158
if (this.messagesHistory == null) {
158159
this.messagesHistory = new ArrayList<>();
159160
}
@@ -168,7 +169,7 @@ public CompletionPostRequest addMessagesHistoryItem(
168169
* @return messagesHistory The messagesHistory of this {@link CompletionPostRequest} instance.
169170
*/
170171
@Nonnull
171-
public List<ChatMessage> getMessagesHistory() {
172+
public List<ChatMessagesInner> getMessagesHistory() {
172173
return messagesHistory;
173174
}
174175

@@ -178,7 +179,7 @@ public List<ChatMessage> getMessagesHistory() {
178179
* @param messagesHistory History of chat messages. Can be used to provide system and assistant
179180
* messages to set the context of the conversation. Will be merged with the template message
180181
*/
181-
public void setMessagesHistory(@Nullable final List<ChatMessage> messagesHistory) {
182+
public void setMessagesHistory(@Nullable final List<ChatMessagesInner> messagesHistory) {
182183
this.messagesHistory = messagesHistory;
183184
}
184185

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

orchestration/src/main/java/com/sap/ai/sdk/orchestration/model/DPIConfig.java

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Orchestration
33
* 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.36.1
5+
* The version of the OpenAPI document: 0.43.0
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -158,6 +158,9 @@ public static MethodEnum fromValue(@Nonnull final String value) {
158158
@JsonProperty("allowlist")
159159
private List<String> allowlist = new ArrayList<>();
160160

161+
@JsonProperty("mask_grounding_input")
162+
private DPIConfigMaskGroundingInput maskGroundingInput;
163+
161164
@JsonAnySetter @JsonAnyGetter
162165
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
163166

@@ -318,6 +321,39 @@ public void setAllowlist(@Nullable final List<String> allowlist) {
318321
this.allowlist = allowlist;
319322
}
320323

324+
/**
325+
* Set the maskGroundingInput of this {@link DPIConfig} instance and return the same instance.
326+
*
327+
* @param maskGroundingInput The maskGroundingInput of this {@link DPIConfig}
328+
* @return The same instance of this {@link DPIConfig} class
329+
*/
330+
@Nonnull
331+
public DPIConfig maskGroundingInput(
332+
@Nullable final DPIConfigMaskGroundingInput maskGroundingInput) {
333+
this.maskGroundingInput = maskGroundingInput;
334+
return this;
335+
}
336+
337+
/**
338+
* Get maskGroundingInput
339+
*
340+
* @return maskGroundingInput The maskGroundingInput of this {@link DPIConfig} instance.
341+
*/
342+
@Nonnull
343+
public DPIConfigMaskGroundingInput getMaskGroundingInput() {
344+
return maskGroundingInput;
345+
}
346+
347+
/**
348+
* Set the maskGroundingInput of this {@link DPIConfig} instance.
349+
*
350+
* @param maskGroundingInput The maskGroundingInput of this {@link DPIConfig}
351+
*/
352+
public void setMaskGroundingInput(
353+
@Nullable final DPIConfigMaskGroundingInput maskGroundingInput) {
354+
this.maskGroundingInput = maskGroundingInput;
355+
}
356+
321357
/**
322358
* Get the names of the unrecognizable properties of the {@link DPIConfig}.
323359
*
@@ -369,12 +405,14 @@ public boolean equals(@Nullable final java.lang.Object o) {
369405
&& Objects.equals(this.type, dpIConfig.type)
370406
&& Objects.equals(this.method, dpIConfig.method)
371407
&& Objects.equals(this.entities, dpIConfig.entities)
372-
&& Objects.equals(this.allowlist, dpIConfig.allowlist);
408+
&& Objects.equals(this.allowlist, dpIConfig.allowlist)
409+
&& Objects.equals(this.maskGroundingInput, dpIConfig.maskGroundingInput);
373410
}
374411

375412
@Override
376413
public int hashCode() {
377-
return Objects.hash(type, method, entities, allowlist, cloudSdkCustomFields);
414+
return Objects.hash(
415+
type, method, entities, allowlist, maskGroundingInput, cloudSdkCustomFields);
378416
}
379417

380418
@Override
@@ -386,6 +424,7 @@ public String toString() {
386424
sb.append(" method: ").append(toIndentedString(method)).append("\n");
387425
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
388426
sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n");
427+
sb.append(" maskGroundingInput: ").append(toIndentedString(maskGroundingInput)).append("\n");
389428
cloudSdkCustomFields.forEach(
390429
(k, v) ->
391430
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));

0 commit comments

Comments
 (0)