mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Adjust aphro streaming error parser
This commit is contained in:
@ -437,9 +437,11 @@ function tryParseStreamingError(response) {
|
||||
// No JSON. Do nothing.
|
||||
}
|
||||
|
||||
if (data?.error?.message) {
|
||||
toastr.error(data.error.message, 'API Error');
|
||||
throw new Error(data.error.message);
|
||||
const message = data?.error?.message || data?.message;
|
||||
|
||||
if (message) {
|
||||
toastr.error(message, 'API Error');
|
||||
throw new Error(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user