Преглед на файлове

Update EditChannel.js

Fixes an issue with the OpenAI models interface where it fails to get a list of models.
迷糊虫 преди 1 година
родител
ревизия
36bf4b3926
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      web/src/pages/Channel/EditChannel.js

+ 1 - 1
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;