fix nai issue

This commit is contained in:
kwaroran
2024-09-01 19:38:54 +09:00
parent 61b662ebf1
commit 7ba6a81ff0

View File

@@ -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