chore: format

This commit is contained in:
Timothy J. Baek committed 2024-08-13 11:12:35 +01:00
1 parent 70f580ec45
commit 7ef5aa520c
24 files changed
+160 -143

No files matched your search

+1 -1
View File
@@ -260,7 +260,7 @@ export const getOpenAIModelsDirect = async (
throw error;
}
const models = Array.isArray(res) ? res : res?.data ?? null;
const models = Array.isArray(res) ? res : (res?.data ?? null);
return models
.map((model) => ({ id: model.id, name: model.name ?? model.id, external: true }))