Check for `error` as well when parsing streaming responses
| @@ -1146,7 +1146,7 @@ function tryParseStreamingError(response, decoded) { | ||
| 1146 | 1146 | // No JSON. Do nothing. |
| 1147 | 1147 | } |
| 1148 | 1148 | |
| 1149 | 1149 | const message = data?.error?.message || data?.error || data?.message || data?.detail; |
| 1150 | 1150 | |
| 1151 | 1151 | if (message) { |
| 1152 | 1152 | toastr.error(message, 'Text Completion API'); |