mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
(ui) update build
This commit is contained in:
parent
287659163c
commit
79fcd75de6
24 changed files with 49 additions and 12 deletions
|
@ -3,7 +3,7 @@ import { Card, Title, Subtitle, Table, TableHead, TableRow, TableCell, TableBody
|
|||
import { modelInfoCall } from "./networking";
|
||||
|
||||
interface ModelDashboardProps {
|
||||
accessToken: string;
|
||||
accessToken: string | null;
|
||||
token: string | null;
|
||||
userRole: string | null;
|
||||
userID: string | null;
|
||||
|
@ -18,6 +18,9 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
|
|||
const [modelData, setModelData] = useState<any>({ data: [] });
|
||||
|
||||
useEffect(() => {
|
||||
if (!accessToken || !token || !userRole || !userID) {
|
||||
return;
|
||||
}
|
||||
const fetchData = async () => {
|
||||
try {
|
||||
// Replace with your actual API call for model data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue