ui new build

This commit is contained in:
Ishaan Jaff 2024-08-24 16:45:53 -07:00
parent 20840eaad3
commit d9769c393e
23 changed files with 19 additions and 16 deletions

View file

@ -381,7 +381,7 @@ const ViewKeyTable: React.FC<ViewKeyTableProps> = ({
const fetchAvailableModels = async () => {
try {
const modelDataResponse = await modelInfoCall(accessToken, "", "");
const allModelGroups = Array.from(new Set(modelDataResponse.data.map((model: any) => model.model_name)));
const allModelGroups: string[] = Array.from(new Set(modelDataResponse.data.map((model: any) => model.model_name)));
setAvailableModels(allModelGroups);
} catch (error) {
console.error("Error fetching model data:", error);