mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Remove duplicate import and unused variable in metrics.py
Eliminated a redundant import of SecretStr and removed an unused variable 'response' in the send_allquiet_alert function for code cleanliness.
This commit is contained in:
@@ -4,7 +4,6 @@ from typing import Literal
|
||||
|
||||
import sentry_sdk
|
||||
from pydantic import BaseModel, Field, SecretStr
|
||||
from pydantic import SecretStr
|
||||
from sentry_sdk.integrations import DidNotEnable
|
||||
from sentry_sdk.integrations.anthropic import AnthropicIntegration
|
||||
from sentry_sdk.integrations.asyncio import AsyncioIntegration
|
||||
@@ -75,7 +74,7 @@ async def send_allquiet_alert(alert: AllQuietAlert):
|
||||
|
||||
from backend.util.request import Requests
|
||||
|
||||
response = await Requests().post(hook_url, json=alert.model_dump())
|
||||
await Requests().post(hook_url, json=alert.model_dump())
|
||||
|
||||
|
||||
async def discord_send_alert(
|
||||
|
||||
Reference in New Issue
Block a user