mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
ui - show alert types
This commit is contained in:
parent
61f48aba6f
commit
77651a291c
1 changed files with 25 additions and 0 deletions
|
|
@ -49,6 +49,12 @@ const Settings: React.FC<SettingsPageProps> = ({
|
|||
const [form] = Form.useForm();
|
||||
const [selectedCallback, setSelectedCallback] = useState<string | null>(null);
|
||||
const [selectedAlertValues, setSelectedAlertValues] = useState([]);
|
||||
const alerts_to_UI_NAME: Record<string, string> = {
|
||||
"llm_exceptions": "LLM Exceptions",
|
||||
"llm_too_slow": "LLM Responses Too Slow",
|
||||
"llm_requests_hanging": "LLM Requests Hanging",
|
||||
"budget_alerts": "Budget Alerts (API Keys, Users)"
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (!accessToken || !userRole || !userID) {
|
||||
|
|
@ -249,6 +255,25 @@ const Settings: React.FC<SettingsPageProps> = ({
|
|||
Add Callback
|
||||
</Button>
|
||||
|
||||
</Card>
|
||||
|
||||
<Title>Alerting</Title>
|
||||
<Card>
|
||||
<Table>
|
||||
|
||||
<TableBody>
|
||||
{Object.entries(alerts_to_UI_NAME).map(([key, value], index) => (
|
||||
<TableRow key={index}>
|
||||
<TableCell>
|
||||
<Text>{value}</Text>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
</TableBody>
|
||||
</Table>
|
||||
|
||||
|
||||
|
||||
</Card>
|
||||
|
||||
</Grid>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue