File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 18
18
from litellm .proxy ._types import PassThroughEndpointLoggingResultValues
19
19
from litellm .proxy .auth .user_api_key_auth import user_api_key_auth
20
20
from litellm .types .utils import StandardPassThroughResponseObject
21
+ from litellm .utils import executor as thread_pool_executor
21
22
22
23
from .llm_provider_handlers .anthropic_passthrough_logging_handler import (
23
24
AnthropicPassthroughLoggingHandler ,
@@ -93,15 +94,16 @@ async def pass_through_async_success_handler(
93
94
standard_logging_response_object = StandardPassThroughResponseObject (
94
95
response = httpx_response .text
95
96
)
96
- threading . Thread (
97
- target = logging_obj .success_handler ,
97
+ thread_pool_executor . submit (
98
+ logging_obj .success_handler ,
98
99
args = (
99
100
standard_logging_response_object ,
100
101
start_time ,
101
102
end_time ,
102
103
cache_hit ,
103
104
),
104
- ).start ()
105
+ )
106
+
105
107
await logging_obj .async_success_handler (
106
108
result = (
107
109
json .dumps (result )
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ router_settings:
21
21
redis_password : os.environ/REDIS_PASSWORD
22
22
23
23
litellm_settings :
24
- callbacks : ["prometheus"]
24
+ callbacks : ["prometheus"]
25
+ success_callback : ["langfuse"]
You can’t perform that action at this time.
0 commit comments