@@ -83,7 +83,8 @@ public List<Assistant> list(AssistantsListRequest request, RequestOptions reques
83
83
.url (httpUrl .build ())
84
84
.method ("GET" , null )
85
85
.headers (Headers .of (clientOptions .headers (requestOptions )))
86
- .addHeader ("Content-Type" , "application/json" );
86
+ .addHeader ("Content-Type" , "application/json" )
87
+ .addHeader ("Accept" , "application/json" );
87
88
Request okhttpRequest = _requestBuilder .build ();
88
89
OkHttpClient client = clientOptions .httpClient ();
89
90
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -130,6 +131,7 @@ public Assistant create(CreateAssistantDto request, RequestOptions requestOption
130
131
.method ("POST" , body )
131
132
.headers (Headers .of (clientOptions .headers (requestOptions )))
132
133
.addHeader ("Content-Type" , "application/json" )
134
+ .addHeader ("Accept" , "application/json" )
133
135
.build ();
134
136
OkHttpClient client = clientOptions .httpClient ();
135
137
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -165,6 +167,7 @@ public Assistant get(String id, RequestOptions requestOptions) {
165
167
.method ("GET" , null )
166
168
.headers (Headers .of (clientOptions .headers (requestOptions )))
167
169
.addHeader ("Content-Type" , "application/json" )
170
+ .addHeader ("Accept" , "application/json" )
168
171
.build ();
169
172
OkHttpClient client = clientOptions .httpClient ();
170
173
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -200,6 +203,7 @@ public Assistant delete(String id, RequestOptions requestOptions) {
200
203
.method ("DELETE" , null )
201
204
.headers (Headers .of (clientOptions .headers (requestOptions )))
202
205
.addHeader ("Content-Type" , "application/json" )
206
+ .addHeader ("Accept" , "application/json" )
203
207
.build ();
204
208
OkHttpClient client = clientOptions .httpClient ();
205
209
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -220,6 +224,10 @@ public Assistant delete(String id, RequestOptions requestOptions) {
220
224
}
221
225
}
222
226
227
+ public Assistant update (String id ) {
228
+ return update (id , UpdateAssistantDto .builder ().build ());
229
+ }
230
+
223
231
public Assistant update (String id , UpdateAssistantDto request ) {
224
232
return update (id , request , null );
225
233
}
@@ -242,6 +250,7 @@ public Assistant update(String id, UpdateAssistantDto request, RequestOptions re
242
250
.method ("PATCH" , body )
243
251
.headers (Headers .of (clientOptions .headers (requestOptions )))
244
252
.addHeader ("Content-Type" , "application/json" )
253
+ .addHeader ("Accept" , "application/json" )
245
254
.build ();
246
255
OkHttpClient client = clientOptions .httpClient ();
247
256
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
0 commit comments