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
f0416437
Unverified
Commit
f0416437
authored
Apr 20, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 20, 2024
Browse files
Merge pull request #1632 from cheahjs/fix/error-object-object
fix: use model name when outputting error message
parents
c468df2f
7e5bda60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/routes/(app)/+page.svelte
src/routes/(app)/+page.svelte
+5
-3
src/routes/(app)/c/[id]/+page.svelte
src/routes/(app)/c/[id]/+page.svelte
+5
-3
No files found.
src/routes/(app)/+page.svelte
View file @
f0416437
...
@@ -681,16 +681,18 @@
...
@@ -681,16 +681,18 @@
}
}
}
else
{
}
else
{
toast
.
error
(
toast
.
error
(
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, { provider: model })
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
.
name
??
model
.
id
})
);
);
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
}
}
responseMessage
.
error
=
true
;
responseMessage
.
error
=
true
;
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
responseMessage
.
done
=
true
;
responseMessage
.
done
=
true
;
messages
=
messages
;
messages
=
messages
;
...
...
src/routes/(app)/c/[id]/+page.svelte
View file @
f0416437
...
@@ -693,16 +693,18 @@
...
@@ -693,16 +693,18 @@
}
}
}
else
{
}
else
{
toast
.
error
(
toast
.
error
(
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, { provider: model })
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
.
name
??
model
.
id
})
);
);
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
}
}
responseMessage
.
error
=
true
;
responseMessage
.
error
=
true
;
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
responseMessage
.
content
=
$
i18n
.
t
(`
Uh
-
oh
! There was an issue connecting to {{provider}}.`, {
provider
:
model
provider
:
model
.
name
??
model
.
id
});
});
responseMessage
.
done
=
true
;
responseMessage
.
done
=
true
;
messages
=
messages
;
messages
=
messages
;
...
...
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