forked from phoenix/litellm-mirror
ui new build
This commit is contained in:
parent
20840eaad3
commit
d9769c393e
23 changed files with 19 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue