mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Merge pull request #3108 from BerriAI/litellm_add_base_url_in_slack_alerts
[Proxy] Add PROXY_BASE_URL in slack alerts
This commit is contained in:
commit
227c9c4ab7
1 changed files with 2 additions and 3 deletions
|
|
@ -426,9 +426,8 @@ class ProxyLogging:
|
|||
|
||||
# Get the current timestamp
|
||||
current_time = datetime.now().strftime("%H:%M:%S")
|
||||
formatted_message = (
|
||||
f"Level: `{level}`\nTimestamp: `{current_time}`\n\nMessage: {message}"
|
||||
)
|
||||
_proxy_base_url = os.getenv("PROXY_BASE_URL", "None")
|
||||
formatted_message = f"Level: `{level}`\nTimestamp: `{current_time}`\n\nMessage: {message} \n\nProxy URL: `{_proxy_base_url}`"
|
||||
if self.alerting is None:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue