mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(proxy_server.py): setup depedencies on server startup
This commit is contained in:
parent
4e828ff541
commit
3291de9e11
5 changed files with 10 additions and 13 deletions
|
@ -7,7 +7,7 @@ from litellm.proxy.hooks.parallel_request_limiter import MaxParallelRequestsHand
|
|||
from litellm.integrations.custom_logger import CustomLogger
|
||||
def print_verbose(print_statement):
|
||||
if litellm.set_verbose:
|
||||
print(print_statement) # noqa
|
||||
print(f"LiteLLM Proxy: {print_statement}") # noqa
|
||||
### LOGGING ###
|
||||
class ProxyLogging:
|
||||
"""
|
||||
|
@ -26,7 +26,7 @@ class ProxyLogging:
|
|||
pass
|
||||
|
||||
def _init_litellm_callbacks(self):
|
||||
|
||||
print_verbose(f"INITIALIZING LITELLM CALLBACKS!")
|
||||
litellm.callbacks.append(self.max_parallel_request_limiter)
|
||||
for callback in litellm.callbacks:
|
||||
if callback not in litellm.input_callback:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue