Update EditChannel.js

Fixes an issue with the OpenAI models interface where it fails to get a list of models.
This commit is contained in:
迷糊虫 authored and GitHub committed 2024-12-13 13:36:03 +08:00
1 parent 3f501f4531
commit 4ae37b942d
1 file changed
+1 -1
+1 -1
View File
@@ -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;