mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
Litellm dev 01 30 2025 p2 (#8134)
* feat(lowest_tpm_rpm_v2.py): fix redis cache check to use >= instead of > makes it consistent * test(test_custom_guardrails.py): add more unit testing on default on guardrails ensure it runs if user sent guardrail list is empty * docs(quick_start.md): clarify default on guardrails run even if user guardrails list contains other guardrails * refactor(litellm_logging.py): refactor no-log to helper util allows for more consistent behavior * feat(litellm_logging.py): add event hook to verbose logs * fix(litellm_logging.py): add unit testing to ensure `litellm.disable_no_log_param` is respected * docs(logging.md): document how to disable 'no-log' param * test: fix test to handle feb * test: cleanup old bedrock model * fix: fix router check
This commit is contained in:
parent
78a21b66a2
commit
2eee7f978f
10 changed files with 103 additions and 30 deletions
|
@ -51,11 +51,12 @@ if set_verbose == True:
|
|||
_turn_on_debug()
|
||||
###############################################
|
||||
### Callbacks /Logging / Success / Failure Handlers #####
|
||||
CALLBACK_TYPES = Union[str, Callable, CustomLogger]
|
||||
input_callback: List[CALLBACK_TYPES] = []
|
||||
success_callback: List[CALLBACK_TYPES] = []
|
||||
failure_callback: List[CALLBACK_TYPES] = []
|
||||
service_callback: List[CALLBACK_TYPES] = []
|
||||
logging_callback_manager = LoggingCallbackManager()
|
||||
input_callback: List[Union[str, Callable, CustomLogger]] = []
|
||||
success_callback: List[Union[str, Callable, CustomLogger]] = []
|
||||
failure_callback: List[Union[str, Callable, CustomLogger]] = []
|
||||
service_callback: List[Union[str, Callable, CustomLogger]] = []
|
||||
_custom_logger_compatible_callbacks_literal = Literal[
|
||||
"lago",
|
||||
"openmeter",
|
||||
|
@ -1276,3 +1277,4 @@ custom_provider_map: List[CustomLLMItem] = []
|
|||
_custom_providers: List[str] = (
|
||||
[]
|
||||
) # internal helper util, used to track names of custom providers
|
||||
global_disable_no_log_param: bool = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue