Fix local fetch import for Kobold

This commit is contained in:
Cohee 2023-08-30 21:46:09 +03:00
parent 02f7c9ab64
commit a757532c3e
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ app.post("/generate", jsonParser, async function (request, response_generate = r
const MAX_RETRIES = 50;
const delayAmount = 2500;
let fetch, url, response;
let url, response;
for (let i = 0; i < MAX_RETRIES; i++) {
try {
url = request.body.streaming ? `${api_server}/extra/generate/stream` : `${api_server}/v1/generate`;