@@ -38,6 +38,7 @@ async def __call__(self, *args, **kwargs):
3838import litellm .utils as litellm_utils
3939from litellm .litellm_core_utils import streaming_handler
4040from litellm .litellm_core_utils import thread_pool_executor
41+ from litellm .litellm_core_utils import litellm_logging
4142from litellm .llms .custom_httpx .http_handler import HTTPHandler
4243
4344
@@ -48,6 +49,7 @@ def _reset_litellm_executor():
4849 thread_pool_executor .executor = ThreadPoolExecutor (max_workers = 100 )
4950 litellm_utils .executor = thread_pool_executor .executor
5051 streaming_handler .executor = thread_pool_executor .executor
52+ litellm_logging .executor = thread_pool_executor .executor
5153
5254
5355@pytest .fixture ()
@@ -190,7 +192,7 @@ def test_nonstreaming_chat_completion(
190192 model_response = get_model_response (
191193 nonstreaming_chat_completions_model_response ,
192194 serialize_pydantic = True ,
193- request_headers = {"X-Stainless-Raw-Response" : "True " },
195+ request_headers = {"X-Stainless-Raw-Response" : "true " },
194196 )
195197
196198 with mock .patch .object (
@@ -275,7 +277,7 @@ def test_streaming_chat_completion(
275277 streaming_chat_completions_model_response ,
276278 include_event_type = False ,
277279 ),
278- request_headers = {"X-Stainless-Raw-Response" : "True " },
280+ request_headers = {"X-Stainless-Raw-Response" : "true " },
279281 )
280282
281283 with mock .patch .object (
@@ -502,7 +504,7 @@ def test_span_origin(
502504 model_response = get_model_response (
503505 nonstreaming_chat_completions_model_response ,
504506 serialize_pydantic = True ,
505- request_headers = {"X-Stainless-Raw-Response" : "True " },
507+ request_headers = {"X-Stainless-Raw-Response" : "true " },
506508 )
507509
508510 with mock .patch .object (
@@ -547,7 +549,7 @@ def test_multiple_providers(
547549 openai_model_response = get_model_response (
548550 nonstreaming_chat_completions_model_response ,
549551 serialize_pydantic = True ,
550- request_headers = {"X-Stainless-Raw-Response" : "True " },
552+ request_headers = {"X-Stainless-Raw-Response" : "true " },
551553 )
552554
553555 with mock .patch .object (
@@ -570,7 +572,7 @@ def test_multiple_providers(
570572 anthropic_model_response = get_model_response (
571573 nonstreaming_anthropic_model_response ,
572574 serialize_pydantic = True ,
573- request_headers = {"X-Stainless-Raw-Response" : "True " },
575+ request_headers = {"X-Stainless-Raw-Response" : "true " },
574576 )
575577
576578 with mock .patch .object (
@@ -639,7 +641,7 @@ def test_additional_parameters(
639641 model_response = get_model_response (
640642 nonstreaming_chat_completions_model_response ,
641643 serialize_pydantic = True ,
642- request_headers = {"X-Stainless-Raw-Response" : "True " },
644+ request_headers = {"X-Stainless-Raw-Response" : "true " },
643645 )
644646
645647 with mock .patch .object (
@@ -732,7 +734,7 @@ def test_no_integration(
732734 model_response = get_model_response (
733735 nonstreaming_chat_completions_model_response ,
734736 serialize_pydantic = True ,
735- request_headers = {"X-Stainless-Raw-Response" : "True " },
737+ request_headers = {"X-Stainless-Raw-Response" : "true " },
736738 )
737739
738740 with mock .patch .object (
@@ -908,7 +910,7 @@ def test_binary_content_encoding_image_url(
908910 model_response = get_model_response (
909911 nonstreaming_chat_completions_model_response ,
910912 serialize_pydantic = True ,
911- request_headers = {"X-Stainless-Raw-Response" : "True " },
913+ request_headers = {"X-Stainless-Raw-Response" : "true " },
912914 )
913915
914916 with mock .patch .object (
@@ -987,7 +989,7 @@ def test_binary_content_encoding_mixed_content(
987989 model_response = get_model_response (
988990 nonstreaming_chat_completions_model_response ,
989991 serialize_pydantic = True ,
990- request_headers = {"X-Stainless-Raw-Response" : "True " },
992+ request_headers = {"X-Stainless-Raw-Response" : "true " },
991993 )
992994
993995 with mock .patch .object (
@@ -1052,7 +1054,7 @@ def test_binary_content_encoding_uri_type(
10521054 model_response = get_model_response (
10531055 nonstreaming_chat_completions_model_response ,
10541056 serialize_pydantic = True ,
1055- request_headers = {"X-Stainless-Raw-Response" : "True " },
1057+ request_headers = {"X-Stainless-Raw-Response" : "true " },
10561058 )
10571059
10581060 with mock .patch .object (
0 commit comments