Commit 4ae37b94 by 迷糊虫 Committed by GitHub

Update EditChannel.js

Fixes an issue with the OpenAI models interface where it fails to get a list of models.
parent 3f501f45
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment