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 @@
})
.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 = [
......
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