forked from open-webui/open-webui
refac
This commit is contained in:
parent
93bd20b854
commit
2fd2f792d6
2 changed files with 3 additions and 33 deletions
|
@ -20,9 +20,7 @@ export const getModels = async (token: string) => {
|
|||
})
|
||||
]);
|
||||
|
||||
models = models
|
||||
.filter((models) => models)
|
||||
.reduce((a, e, i, arr) => a.concat(e, ...(i < arr.length - 1 ? [{ name: 'hr' }] : [])), []);
|
||||
models = models.filter((models) => models).reduce((a, e, i, arr) => a.concat(e), []);
|
||||
|
||||
return models;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue