mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-13 18:50:39 +01:00
Parse Tabby streaming error.
This commit is contained in:
parent
42fa3c79d7
commit
7534e137ae
@ -996,7 +996,7 @@ function tryParseStreamingError(response, decoded) {
|
|||||||
// No JSON. Do nothing.
|
// No JSON. Do nothing.
|
||||||
}
|
}
|
||||||
|
|
||||||
const message = data?.error?.message || data?.message;
|
const message = data?.error?.message || data?.message || data?.detail;
|
||||||
|
|
||||||
if (message) {
|
if (message) {
|
||||||
toastr.error(message, 'Text Completion API');
|
toastr.error(message, 'Text Completion API');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user