Fix server crash if request was aborted during out of quota retry
| @@ -1182,6 +1182,7 @@ router.post('/generate', jsonParser, function (request, response) { | |||
| 1182 | */ | 1182 | */ |
| 1183 | async function makeRequest(config, response, request, retries = 5, timeout = 5000) { | 1183 | async function makeRequest(config, response, request, retries = 5, timeout = 5000) { |
| 1184 | try { | 1184 | try { |
| 1185 | controller.signal.throwIfAborted(); | ||
| 1185 | const fetchResponse = await fetch(endpointUrl, config); | 1186 | const fetchResponse = await fetch(endpointUrl, config); |
| 1186 | 1187 | ||
| 1187 | if (request.body.stream) { | 1188 | if (request.body.stream) { |