@@ -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 ()
@@ -158,7 +160,7 @@ def test_nonstreaming_chat_completion(
158160 model_response = get_model_response (
159161 nonstreaming_chat_completions_model_response ,
160162 serialize_pydantic = True ,
161- request_headers = {"X-Stainless-Raw-Response" : "True " },
163+ request_headers = {"X-Stainless-Raw-Response" : "true " },
162164 )
163165
164166 with mock .patch .object (
@@ -243,7 +245,7 @@ def test_streaming_chat_completion(
243245 streaming_chat_completions_model_response ,
244246 include_event_type = False ,
245247 ),
246- request_headers = {"X-Stainless-Raw-Response" : "True " },
248+ request_headers = {"X-Stainless-Raw-Response" : "true " },
247249 )
248250
249251 with mock .patch .object (
@@ -513,7 +515,7 @@ def test_span_origin(
513515 model_response = get_model_response (
514516 nonstreaming_chat_completions_model_response ,
515517 serialize_pydantic = True ,
516- request_headers = {"X-Stainless-Raw-Response" : "True " },
518+ request_headers = {"X-Stainless-Raw-Response" : "true " },
517519 )
518520
519521 with mock .patch .object (
@@ -558,7 +560,7 @@ def test_multiple_providers(
558560 openai_model_response = get_model_response (
559561 nonstreaming_chat_completions_model_response ,
560562 serialize_pydantic = True ,
561- request_headers = {"X-Stainless-Raw-Response" : "True " },
563+ request_headers = {"X-Stainless-Raw-Response" : "true " },
562564 )
563565
564566 with mock .patch .object (
@@ -581,7 +583,7 @@ def test_multiple_providers(
581583 anthropic_model_response = get_model_response (
582584 nonstreaming_anthropic_model_response ,
583585 serialize_pydantic = True ,
584- request_headers = {"X-Stainless-Raw-Response" : "True " },
586+ request_headers = {"X-Stainless-Raw-Response" : "true " },
585587 )
586588
587589 with mock .patch .object (
@@ -650,7 +652,7 @@ def test_additional_parameters(
650652 model_response = get_model_response (
651653 nonstreaming_chat_completions_model_response ,
652654 serialize_pydantic = True ,
653- request_headers = {"X-Stainless-Raw-Response" : "True " },
655+ request_headers = {"X-Stainless-Raw-Response" : "true " },
654656 )
655657
656658 with mock .patch .object (
@@ -743,7 +745,7 @@ def test_no_integration(
743745 model_response = get_model_response (
744746 nonstreaming_chat_completions_model_response ,
745747 serialize_pydantic = True ,
746- request_headers = {"X-Stainless-Raw-Response" : "True " },
748+ request_headers = {"X-Stainless-Raw-Response" : "true " },
747749 )
748750
749751 with mock .patch .object (
@@ -919,7 +921,7 @@ def test_binary_content_encoding_image_url(
919921 model_response = get_model_response (
920922 nonstreaming_chat_completions_model_response ,
921923 serialize_pydantic = True ,
922- request_headers = {"X-Stainless-Raw-Response" : "True " },
924+ request_headers = {"X-Stainless-Raw-Response" : "true " },
923925 )
924926
925927 with mock .patch .object (
@@ -998,7 +1000,7 @@ def test_binary_content_encoding_mixed_content(
9981000 model_response = get_model_response (
9991001 nonstreaming_chat_completions_model_response ,
10001002 serialize_pydantic = True ,
1001- request_headers = {"X-Stainless-Raw-Response" : "True " },
1003+ request_headers = {"X-Stainless-Raw-Response" : "true " },
10021004 )
10031005
10041006 with mock .patch .object (
@@ -1063,7 +1065,7 @@ def test_binary_content_encoding_uri_type(
10631065 model_response = get_model_response (
10641066 nonstreaming_chat_completions_model_response ,
10651067 serialize_pydantic = True ,
1066- request_headers = {"X-Stainless-Raw-Response" : "True " },
1068+ request_headers = {"X-Stainless-Raw-Response" : "true " },
10671069 )
10681070
10691071 with mock .patch .object (
0 commit comments