Trying whisper API, getting ECONNRESET

I’m just testing out Whisper API from NodeJS, but I’m getting this error:

cause: FetchError: request to failed, reason: read ECONNRESET

This is the call I’m doing:

        const apiResponse = await{
            file: fs.createReadStream(path.join(process.env.AUDIO_FILE_PATH, audioFilename)),
            model: "whisper-1",
            response_format: "verbose_json",

Is it just a Xmas present for me, or I’m doing something wrong?


1 Like