[fix] fixed huburl

This commit is contained in:
kwaroran
2023-07-16 17:29:35 +09:00
parent 134efcc5d6
commit e57e133cb4
3 changed files with 10 additions and 11 deletions

View File

@@ -194,7 +194,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
if(db.useStreaming && arg.useStreaming){
body.stream = true
const da = ((!isTauri) && (!isNodeServer) && (!db.usePlainFetch))
? await fetch(`/proxy2`, {
? await fetch(hubURL + `/proxy2`, {
body: JSON.stringify(body),
headers: {
"risu-header": encodeURIComponent(JSON.stringify(headers)),