@@ -83,7 +83,8 @@ public List<Assistant> list(AssistantsListRequest request, RequestOptions reques
8383 .url (httpUrl .build ())
8484 .method ("GET" , null )
8585 .headers (Headers .of (clientOptions .headers (requestOptions )))
86- .addHeader ("Content-Type" , "application/json" );
86+ .addHeader ("Content-Type" , "application/json" )
87+ .addHeader ("Accept" , "application/json" );
8788 Request okhttpRequest = _requestBuilder .build ();
8889 OkHttpClient client = clientOptions .httpClient ();
8990 if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -130,6 +131,7 @@ public Assistant create(CreateAssistantDto request, RequestOptions requestOption
130131 .method ("POST" , body )
131132 .headers (Headers .of (clientOptions .headers (requestOptions )))
132133 .addHeader ("Content-Type" , "application/json" )
134+ .addHeader ("Accept" , "application/json" )
133135 .build ();
134136 OkHttpClient client = clientOptions .httpClient ();
135137 if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -165,6 +167,7 @@ public Assistant get(String id, RequestOptions requestOptions) {
165167 .method ("GET" , null )
166168 .headers (Headers .of (clientOptions .headers (requestOptions )))
167169 .addHeader ("Content-Type" , "application/json" )
170+ .addHeader ("Accept" , "application/json" )
168171 .build ();
169172 OkHttpClient client = clientOptions .httpClient ();
170173 if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -200,6 +203,7 @@ public Assistant delete(String id, RequestOptions requestOptions) {
200203 .method ("DELETE" , null )
201204 .headers (Headers .of (clientOptions .headers (requestOptions )))
202205 .addHeader ("Content-Type" , "application/json" )
206+ .addHeader ("Accept" , "application/json" )
203207 .build ();
204208 OkHttpClient client = clientOptions .httpClient ();
205209 if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -220,6 +224,10 @@ public Assistant delete(String id, RequestOptions requestOptions) {
220224 }
221225 }
222226
227+ public Assistant update (String id ) {
228+ return update (id , UpdateAssistantDto .builder ().build ());
229+ }
230+
223231 public Assistant update (String id , UpdateAssistantDto request ) {
224232 return update (id , request , null );
225233 }
@@ -242,6 +250,7 @@ public Assistant update(String id, UpdateAssistantDto request, RequestOptions re
242250 .method ("PATCH" , body )
243251 .headers (Headers .of (clientOptions .headers (requestOptions )))
244252 .addHeader ("Content-Type" , "application/json" )
253+ .addHeader ("Accept" , "application/json" )
245254 .build ();
246255 OkHttpClient client = clientOptions .httpClient ();
247256 if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
0 commit comments