mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
removed else branch
This commit is contained in:
parent
44d3545839
commit
ad07e53da4
1 changed files with 0 additions and 6 deletions
|
|
@ -466,12 +466,6 @@ class ProxyLogging:
|
|||
|
||||
if initialized_callback is not None:
|
||||
string_callbacks_to_replace[idx] = initialized_callback
|
||||
else:
|
||||
# Only add non-string callbacks to the manager; string
|
||||
# callbacks will be replaced in-place below and are already
|
||||
# present in litellm.callbacks, so adding them to the manager
|
||||
# (which appends to litellm.callbacks) would create duplicates.
|
||||
litellm.logging_callback_manager.add_litellm_callback(callback)
|
||||
|
||||
# Replace string entries in litellm.callbacks with initialized instances
|
||||
for idx, initialized_callback in string_callbacks_to_replace.items():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue