Merge branch 'main' into bun

This commit is contained in:
ThatOneCalculator
2024-01-04 13:30:30 -08:00
16 changed files with 543 additions and 445 deletions
+4 -1
View File
@@ -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);
});
};