From e6d1f5680bf0611e9bdedf5f40a1b554ce36dbab Mon Sep 17 00:00:00 2001 From: nkalupahana Date: Fri, 28 Jun 2024 15:09:05 -0600 Subject: [PATCH] Add user ID when submitting to OpenAI --- scheduled-services/src/audio.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scheduled-services/src/audio.ts b/scheduled-services/src/audio.ts index 98f54009..2dd366b2 100644 --- a/scheduled-services/src/audio.ts +++ b/scheduled-services/src/audio.ts @@ -73,6 +73,7 @@ export const processAudio = async (req: Request, res: Response) => { const form = new FormData(); form.append("file", new Blob([fs.readFileSync(outputFilepath)], { type: "audio/ogg" })); form.append("model", "whisper-1"); + form.append("user", body.user); let retryCount = 5;