From f42d0bd64295f074f546453006529c8892a690c2 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sat, 8 Jul 2023 11:19:23 +0900 Subject: [PATCH] [fix] proxy key not working in web --- src/ts/process/request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/process/request.ts b/src/ts/process/request.ts index e6285d59..83cb20d9 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -186,7 +186,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' body: JSON.stringify(body), headers: { "risu-header": encodeURIComponent(JSON.stringify({ - "Authorization": "Bearer " + db.openAIKey, + "Authorization": "Bearer " + ((aiModel === 'reverse_proxy') ? db.proxyKey : db.openAIKey), "Content-Type": "application/json" })), "risu-url": encodeURIComponent(replacerURL),