diff --git a/ui/litellm-dashboard/src/app/page.tsx b/ui/litellm-dashboard/src/app/page.tsx index 83fc5e3a1..4775ceefd 100644 --- a/ui/litellm-dashboard/src/app/page.tsx +++ b/ui/litellm-dashboard/src/app/page.tsx @@ -7,6 +7,7 @@ import ModelDashboard from "@/components/model_dashboard"; import ViewUserDashboard from "@/components/view_users"; import Teams from "@/components/teams"; import AdminPanel from "@/components/admins"; +import Settings from "@/components/settings"; import ChatUI from "@/components/chat_ui"; import Sidebar from "../components/leftnav"; import Usage from "../components/usage"; @@ -161,6 +162,9 @@ const CreateKeyPage = () => { searchParams={searchParams} accessToken={accessToken} /> + ) : page == "settings" ? ( + ) : ( = ({ Models + setPage("settings")}> + + Settings + + {userRole == "Admin" ? ( setPage("admin-panel")}> diff --git a/ui/litellm-dashboard/src/components/settings.tsx b/ui/litellm-dashboard/src/components/settings.tsx new file mode 100644 index 000000000..ac279be60 --- /dev/null +++ b/ui/litellm-dashboard/src/components/settings.tsx @@ -0,0 +1,43 @@ +import React, { useState, useEffect } from "react"; +import { Card, Title, Subtitle, Table, TableHead, TableRow, TableHeaderCell, TableCell, TableBody, Metric, Text, Grid, Button, } from "@tremor/react"; + +const Settings = () => { + const [callbacks, setCallbacks] = useState([ + { name: "Callback 1", envVars: ["sk-243******", "SECRET_KEY_2", "SECRET_KEY_3"] }, + { name: "Callback 2", envVars: ["sk-456******", "SECRET_KEY_4", "SECRET_KEY_5"] }, + ]); + + return ( +
+ + + Settings + Logging Callbacks + + + + + Callback Name + Environment Variables + + + + {callbacks.map((callback, index) => ( + + {callback.name} + + {callback.envVars.map((envVar, index) => ( + {envVar} + ))} + + + ))} + +
+
+
+
+ ); +}; + +export default Settings; \ No newline at end of file