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) {
1146 // No JSON. Do nothing.1146 // No JSON. Do nothing.
1147 }1147 }
11481148
1149 const message = data?.error?.message || data?.message || data?.detail;1149 const message = data?.error?.message || data?.error || data?.message || data?.detail;
11501150
1151 if (message) {1151 if (message) {
1152 toastr.error(message, 'Text Completion API');1152 toastr.error(message, 'Text Completion API');