@@ -1085,6 +1085,7 @@ public enum OutputModality {
1085
1085
* Currently supported values are low, medium, and high. Reducing reasoning effort can
1086
1086
* result in faster responses and fewer tokens used on reasoning in a response.
1087
1087
* @param webSearchOptions Options for web search.
1088
+ * @param verbosity Controls the verbosity of the model's response.
1088
1089
*/
1089
1090
@ JsonInclude (Include .NON_NULL )
1090
1091
public record ChatCompletionRequest (// @formatter:off
@@ -1115,7 +1116,8 @@ public record ChatCompletionRequest(// @formatter:off
1115
1116
@ JsonProperty ("parallel_tool_calls" ) Boolean parallelToolCalls ,
1116
1117
@ JsonProperty ("user" ) String user ,
1117
1118
@ JsonProperty ("reasoning_effort" ) String reasoningEffort ,
1118
- @ JsonProperty ("web_search_options" ) WebSearchOptions webSearchOptions ) {
1119
+ @ JsonProperty ("web_search_options" ) WebSearchOptions webSearchOptions ,
1120
+ @ JsonProperty ("verbosity" ) String verbosity ) {
1119
1121
1120
1122
/**
1121
1123
* Shortcut constructor for a chat completion request with the given messages, model and temperature.
@@ -1127,7 +1129,7 @@ public record ChatCompletionRequest(// @formatter:off
1127
1129
public ChatCompletionRequest (List <ChatCompletionMessage > messages , String model , Double temperature ) {
1128
1130
this (messages , model , null , null , null , null , null , null , null , null , null , null , null , null , null ,
1129
1131
null , null , null , false , null , temperature , null ,
1130
- null , null , null , null , null , null );
1132
+ null , null , null , null , null , null , null );
1131
1133
}
1132
1134
1133
1135
/**
@@ -1141,7 +1143,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
1141
1143
this (messages , model , null , null , null , null , null , null ,
1142
1144
null , null , null , List .of (OutputModality .AUDIO , OutputModality .TEXT ), audio , null , null ,
1143
1145
null , null , null , stream , null , null , null ,
1144
- null , null , null , null , null , null );
1146
+ null , null , null , null , null , null , null );
1145
1147
}
1146
1148
1147
1149
/**
@@ -1156,7 +1158,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
1156
1158
public ChatCompletionRequest (List <ChatCompletionMessage > messages , String model , Double temperature , boolean stream ) {
1157
1159
this (messages , model , null , null , null , null , null , null , null , null , null ,
1158
1160
null , null , null , null , null , null , null , stream , null , temperature , null ,
1159
- null , null , null , null , null , null );
1161
+ null , null , null , null , null , null , null );
1160
1162
}
1161
1163
1162
1164
/**
@@ -1172,7 +1174,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
1172
1174
List <FunctionTool > tools , Object toolChoice ) {
1173
1175
this (messages , model , null , null , null , null , null , null , null , null , null ,
1174
1176
null , null , null , null , null , null , null , false , null , 0.8 , null ,
1175
- tools , toolChoice , null , null , null , null );
1177
+ tools , toolChoice , null , null , null , null , null );
1176
1178
}
1177
1179
1178
1180
/**
@@ -1185,7 +1187,7 @@ public ChatCompletionRequest(List<ChatCompletionMessage> messages, String model,
1185
1187
public ChatCompletionRequest (List <ChatCompletionMessage > messages , Boolean stream ) {
1186
1188
this (messages , null , null , null , null , null , null , null , null , null , null ,
1187
1189
null , null , null , null , null , null , null , stream , null , null , null ,
1188
- null , null , null , null , null , null );
1190
+ null , null , null , null , null , null , null );
1189
1191
}
1190
1192
1191
1193
/**
@@ -1198,7 +1200,7 @@ public ChatCompletionRequest streamOptions(StreamOptions streamOptions) {
1198
1200
return new ChatCompletionRequest (this .messages , this .model , this .store , this .metadata , this .frequencyPenalty , this .logitBias , this .logprobs ,
1199
1201
this .topLogprobs , this .maxTokens , this .maxCompletionTokens , this .n , this .outputModalities , this .audioParameters , this .presencePenalty ,
1200
1202
this .responseFormat , this .seed , this .serviceTier , this .stop , this .stream , streamOptions , this .temperature , this .topP ,
1201
- this .tools , this .toolChoice , this .parallelToolCalls , this .user , this .reasoningEffort , this .webSearchOptions );
1203
+ this .tools , this .toolChoice , this .parallelToolCalls , this .user , this .reasoningEffort , this .webSearchOptions , this . verbosity );
1202
1204
}
1203
1205
1204
1206
/**
0 commit comments