From 7ba6a81ff0789578011fe8eb04549655b0052be5 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Sun, 1 Sep 2024 19:38:54 +0900 Subject: [PATCH] fix nai issue --- 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 f58fcf84..8324087c 100644 --- a/src/ts/process/request.ts +++ b/src/ts/process/request.ts @@ -814,7 +814,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model' "parameters":payload } - const da = await globalFetch("https://api.novelai.net/ai/generate", { + const da = await globalFetch(aiModel === 'novelai_kayra' ? "https://text.novelai.net/ai/generate" : "https://api.novelai.net/ai/generate", { body: body, headers: { "Authorization": "Bearer " + db.novelai.token