mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
Add ability to customize slack report frequency
via `SLACK_DAILY_REPORT_FREQUENCY` env var Addresses one thing that @taralika mentioned in https://github.com/BerriAI/litellm/issues/3597
This commit is contained in:
parent
8c37c47c8d
commit
01da3b0a7a
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ class LiteLLMBase(BaseModel):
|
|||
|
||||
|
||||
class SlackAlertingArgs(LiteLLMBase):
|
||||
daily_report_frequency: int = 12 * 60 * 60 # 12 hours
|
||||
default_daily_report_frequency: int = 12 * 60 * 60 # 12 hours
|
||||
daily_report_frequency: int = os.getenv("SLACK_DAILY_REPORT_FREQUENCY", default_daily_report_frequency)
|
||||
report_check_interval: int = 5 * 60 # 5 minutes
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue