Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8573fd52
Unverified
Commit
8573fd52
authored
Nov 03, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Nov 03, 2023
Browse files
Merge pull request #54 from ollama-webui/dev
fix: openai error message
parents
597bc89f
5ff9a878
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/routes/+page.svelte
src/routes/+page.svelte
+2
-2
No files found.
src/routes/+page.svelte
View file @
8573fd52
...
...
@@ -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 = [
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment