@@ -353,14 +353,10 @@ def copy(
353353 Create a new client instance re-using the same options given to the current client with optional overriding.
354354 """
355355 if default_headers is not None and set_default_headers is not None :
356- raise ValueError (
357- "The `default_headers` and `set_default_headers` arguments are mutually exclusive"
358- )
356+ raise ValueError ("The `default_headers` and `set_default_headers` arguments are mutually exclusive" )
359357
360358 if default_query is not None and set_default_query is not None :
361- raise ValueError (
362- "The `default_query` and `set_default_query` arguments are mutually exclusive"
363- )
359+ raise ValueError ("The `default_query` and `set_default_query` arguments are mutually exclusive" )
364360
365361 headers = self ._custom_headers
366362 if default_headers is not None :
@@ -411,14 +407,10 @@ def _make_status_error(
411407 return _exceptions .BadRequestError (err_msg , response = response , body = body )
412408
413409 if response .status_code == 401 :
414- return _exceptions .AuthenticationError (
415- err_msg , response = response , body = body
416- )
410+ return _exceptions .AuthenticationError (err_msg , response = response , body = body )
417411
418412 if response .status_code == 403 :
419- return _exceptions .PermissionDeniedError (
420- err_msg , response = response , body = body
421- )
413+ return _exceptions .PermissionDeniedError (err_msg , response = response , body = body )
422414
423415 if response .status_code == 404 :
424416 return _exceptions .NotFoundError (err_msg , response = response , body = body )
@@ -427,17 +419,13 @@ def _make_status_error(
427419 return _exceptions .ConflictError (err_msg , response = response , body = body )
428420
429421 if response .status_code == 422 :
430- return _exceptions .UnprocessableEntityError (
431- err_msg , response = response , body = body
432- )
422+ return _exceptions .UnprocessableEntityError (err_msg , response = response , body = body )
433423
434424 if response .status_code == 429 :
435425 return _exceptions .RateLimitError (err_msg , response = response , body = body )
436426
437427 if response .status_code >= 500 :
438- return _exceptions .InternalServerError (
439- err_msg , response = response , body = body
440- )
428+ return _exceptions .InternalServerError (err_msg , response = response , body = body )
441429 return APIStatusError (err_msg , response = response , body = body )
442430
443431
@@ -719,14 +707,10 @@ def copy(
719707 Create a new client instance re-using the same options given to the current client with optional overriding.
720708 """
721709 if default_headers is not None and set_default_headers is not None :
722- raise ValueError (
723- "The `default_headers` and `set_default_headers` arguments are mutually exclusive"
724- )
710+ raise ValueError ("The `default_headers` and `set_default_headers` arguments are mutually exclusive" )
725711
726712 if default_query is not None and set_default_query is not None :
727- raise ValueError (
728- "The `default_query` and `set_default_query` arguments are mutually exclusive"
729- )
713+ raise ValueError ("The `default_query` and `set_default_query` arguments are mutually exclusive" )
730714
731715 headers = self ._custom_headers
732716 if default_headers is not None :
@@ -777,14 +761,10 @@ def _make_status_error(
777761 return _exceptions .BadRequestError (err_msg , response = response , body = body )
778762
779763 if response .status_code == 401 :
780- return _exceptions .AuthenticationError (
781- err_msg , response = response , body = body
782- )
764+ return _exceptions .AuthenticationError (err_msg , response = response , body = body )
783765
784766 if response .status_code == 403 :
785- return _exceptions .PermissionDeniedError (
786- err_msg , response = response , body = body
787- )
767+ return _exceptions .PermissionDeniedError (err_msg , response = response , body = body )
788768
789769 if response .status_code == 404 :
790770 return _exceptions .NotFoundError (err_msg , response = response , body = body )
@@ -793,17 +773,13 @@ def _make_status_error(
793773 return _exceptions .ConflictError (err_msg , response = response , body = body )
794774
795775 if response .status_code == 422 :
796- return _exceptions .UnprocessableEntityError (
797- err_msg , response = response , body = body
798- )
776+ return _exceptions .UnprocessableEntityError (err_msg , response = response , body = body )
799777
800778 if response .status_code == 429 :
801779 return _exceptions .RateLimitError (err_msg , response = response , body = body )
802780
803781 if response .status_code >= 500 :
804- return _exceptions .InternalServerError (
805- err_msg , response = response , body = body
806- )
782+ return _exceptions .InternalServerError (err_msg , response = response , body = body )
807783 return APIStatusError (err_msg , response = response , body = body )
808784
809785
@@ -1082,9 +1058,7 @@ def knowledge_bases(
10821058 AsyncKnowledgeBasesResourceWithStreamingResponse ,
10831059 )
10841060
1085- return AsyncKnowledgeBasesResourceWithStreamingResponse (
1086- self ._client .knowledge_bases
1087- )
1061+ return AsyncKnowledgeBasesResourceWithStreamingResponse (self ._client .knowledge_bases )
10881062
10891063 @cached_property
10901064 def models (self ) -> models .AsyncModelsResourceWithStreamingResponse :
0 commit comments