forked from open-webui/open-webui
Merge branch 'main' into bun
This commit is contained in:
commit
8480a9b418
16 changed files with 543 additions and 445 deletions
|
@ -29,5 +29,8 @@ export const getOpenAIModels = async (
|
|||
|
||||
return models
|
||||
.map((model) => ({ name: model.id, external: true }))
|
||||
.filter((model) => (base_url.includes('openai') ? model.name.includes('gpt') : true));
|
||||
.filter((model) => (base_url.includes('openai') ? model.name.includes('gpt') : true))
|
||||
.sort((a, b) => {
|
||||
return a.name.localeCompare(b.name);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue