You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: foundation-models/openai/src/main/java/com/sap/ai/sdk/foundationmodels/openai/OpenAiChatCompletionRequest.java
+76-10Lines changed: 76 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
importjava.util.Arrays;
13
13
importjava.util.List;
14
14
importjava.util.Map;
15
+
importjava.util.Objects;
15
16
importjavax.annotation.Nonnull;
16
17
importjavax.annotation.Nullable;
17
18
importlombok.AccessLevel;
@@ -44,9 +45,6 @@ public class OpenAiChatCompletionRequest {
44
45
/** Top-p sampling parameter. */
45
46
@NullableBigDecimaltopP;
46
47
47
-
/** Whether to stream the completion. */
48
-
booleanstream;
49
-
50
48
/** Maximum number of tokens for the completion. */
51
49
@NullableIntegermaxTokens;
52
50
@@ -66,7 +64,9 @@ public class OpenAiChatCompletionRequest {
66
64
@NullableStringuser;
67
65
68
66
/** Whether to include log probabilities in the response. */
69
-
booleanlogprobs;
67
+
@With(AccessLevel.NONE)
68
+
@Nullable
69
+
Booleanlogprobs;
70
70
71
71
/** Number of top log probabilities to include. */
72
72
@NullableIntegertopLogprobs;
@@ -75,7 +75,9 @@ public class OpenAiChatCompletionRequest {
75
75
@NullableIntegern;
76
76
77
77
/** Whether to allow parallel tool calls. */
78
-
booleanparallelToolCalls;
78
+
@With(AccessLevel.NONE)
79
+
@Nullable
80
+
BooleanparallelToolCalls;
79
81
80
82
/** Seed for random number generation. */
81
83
@NullableIntegerseed;
@@ -113,21 +115,20 @@ public OpenAiChatCompletionRequest(
"content" : "A pair of rabbits is placed in a field. Each month, every pair produces one new pair, starting from the second month. How many rabbits will there be after 12 months?",
0 commit comments