mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
commit
8573fd523a
@ -378,10 +378,10 @@
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
toast.error(`OpenAI: ${error.error.message}`);
|
||||
toast.error(`OpenAI: ${error?.error?.message ?? 'Network Problem'}`);
|
||||
return null;
|
||||
});
|
||||
const openaiModels = openaiModelRes.data;
|
||||
const openaiModels = openaiModelRes?.data ?? null;
|
||||
|
||||
if (openaiModels) {
|
||||
models = [
|
||||
|
Loading…
Reference in New Issue
Block a user