[fix] proxy loc

This commit is contained in:
kwaroran
2023-07-04 21:41:12 +09:00
parent 7f46e9d543
commit 9f9c7736fb

View File

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