Merge pull request #2563 from eltociear/patch-2

Update proxy_server.py
This commit is contained in:
Ishaan Jaff 2024-03-21 07:29:33 -07:00 committed by GitHub
commit bcd62034ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1949,7 +1949,7 @@ class ProxyConfig:
elif key == "success_callback": elif key == "success_callback":
litellm.success_callback = [] litellm.success_callback = []
# intialize success callbacks # initialize success callbacks
for callback in value: for callback in value:
# user passed custom_callbacks.async_on_succes_logger. They need us to import a function # user passed custom_callbacks.async_on_succes_logger. They need us to import a function
if "." in callback: if "." in callback:
@ -1974,7 +1974,7 @@ class ProxyConfig:
elif key == "failure_callback": elif key == "failure_callback":
litellm.failure_callback = [] litellm.failure_callback = []
# intialize success callbacks # initialize success callbacks
for callback in value: for callback in value:
# user passed custom_callbacks.async_on_succes_logger. They need us to import a function # user passed custom_callbacks.async_on_succes_logger. They need us to import a function
if "." in callback: if "." in callback: