From 36bf4b392636c45c9855b7e46cc4c43fb034f22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E7=B3=8A=E8=99=AB?= Date: Fri, 13 Dec 2024 13:36:03 +0800 Subject: [PATCH] Update EditChannel.js Fixes an issue with the OpenAI models interface where it fails to get a list of models. --- web/src/pages/Channel/EditChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js index e6ebbd94..b831ce43 100644 --- a/web/src/pages/Channel/EditChannel.js +++ b/web/src/pages/Channel/EditChannel.js @@ -220,7 +220,7 @@ const EditChannel = (props) => { 'Authorization': `Bearer ${key}` } }); - if (res.data && res.data?.success) { + if (res.data) { models.push(...res.data.data.map((model) => model.id)); } else { err = true;