mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
style(proxy): keep pyright ignore comment under line limit
This commit is contained in:
parent
3a210c1b47
commit
82b789a99d
1 changed files with 6 additions and 4 deletions
|
|
@ -5127,8 +5127,9 @@ class ProxyConfig:
|
|||
# instance already exists from an earlier registration
|
||||
if callback in litellm.success_callback:
|
||||
litellm.success_callback.remove(callback)
|
||||
_add_custom_logger_callback_to_specific_event( # pyright: ignore[reportPrivateUsage] # mirrors the DB-config registration path
|
||||
callback, "success"
|
||||
_add_custom_logger_callback_to_specific_event( # pyright: ignore[reportPrivateUsage]
|
||||
callback,
|
||||
"success", # mirrors the DB-config registration path
|
||||
)
|
||||
else:
|
||||
litellm.logging_callback_manager.add_litellm_success_callback(callback)
|
||||
|
|
@ -5161,8 +5162,9 @@ class ProxyConfig:
|
|||
if callback in litellm._known_custom_logger_compatible_callbacks:
|
||||
if callback in litellm.failure_callback:
|
||||
litellm.failure_callback.remove(callback)
|
||||
_add_custom_logger_callback_to_specific_event( # pyright: ignore[reportPrivateUsage] # mirrors the DB-config registration path
|
||||
callback, "failure"
|
||||
_add_custom_logger_callback_to_specific_event( # pyright: ignore[reportPrivateUsage]
|
||||
callback,
|
||||
"failure", # mirrors the DB-config registration path
|
||||
)
|
||||
else:
|
||||
litellm.logging_callback_manager.add_litellm_failure_callback(callback)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue