Merge pull request #3937 from Ristellise/staging Check for `error` as well when parsing streaming responses

7deef1aa126a98833dadca3411f7a375fbfe5391

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
public/scripts/textgen-settings.js+1 -1
@@ -1146,7 +1146,7 @@ function tryParseStreamingError(response, decoded) {
11461146 // No JSON. Do nothing.
11471147 }
11481148
11491149 const message = data?.error?.message || data?.error || data?.message || data?.detail;
11501150
11511151 if (message) {
11521152 toastr.error(message, 'Text Completion API');