"...tutorials/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "51d261e7256e2344f8d4cf270bff439819945c9a"
Unverified Commit 8573fd52 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #54 from ollama-webui/dev

fix: openai error message
parents 597bc89f 5ff9a878
...@@ -378,10 +378,10 @@ ...@@ -378,10 +378,10 @@
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error);
toast.error(`OpenAI: ${error.error.message}`); toast.error(`OpenAI: ${error?.error?.message ?? 'Network Problem'}`);
return null; return null;
}); });
const openaiModels = openaiModelRes.data; const openaiModels = openaiModelRes?.data ?? null;
if (openaiModels) { if (openaiModels) {
models = [ models = [
......
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 to comment