mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
additional params
This commit is contained in:
parent
3ad8fa5422
commit
2c5455b6ec
2 changed files with 11 additions and 0 deletions
|
|
@ -1417,6 +1417,13 @@ Model Info:
|
|||
if kwargs:
|
||||
for key, value in kwargs.items():
|
||||
formatted_message += f"\n\n{key}: `{value}`\n\n"
|
||||
|
||||
if self.alerting_args.default_alerting_metadata:
|
||||
alerting_metadata = {
|
||||
**self.alerting_args.default_alerting_metadata,
|
||||
**(alerting_metadata or {}),
|
||||
}
|
||||
|
||||
if alerting_metadata:
|
||||
for key, value in alerting_metadata.items():
|
||||
formatted_message += f"\n\n*Alerting Metadata*: \n{key}: `{value}`\n\n"
|
||||
|
|
|
|||
|
|
@ -88,6 +88,10 @@ class SlackAlertingArgs(LiteLLMPydanticObjectBase):
|
|||
default=False,
|
||||
description="If true, the alerting payload will be printed to the console.",
|
||||
)
|
||||
default_alerting_metadata: Optional[Dict[str, Any]] = Field(
|
||||
default=None,
|
||||
description="Default metadata to append to every alert. Gets merged with per-request alerting_metadata.",
|
||||
)
|
||||
|
||||
|
||||
class DeploymentMetrics(LiteLLMPydanticObjectBase):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue