[fix] fixed huburl
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -164,11 +164,8 @@ export function processScriptFull(char:character|groupChat, data:string, mode:Sc
|
||||
}
|
||||
if(p1.startsWith('getvar')){
|
||||
const v = p1.split("::")[1]
|
||||
if(chatID !== -1){
|
||||
const d =getVarChat(chatID)
|
||||
console.log(d)
|
||||
return d[v] ?? "[Null]"
|
||||
}
|
||||
const d =getVarChat(chatID)
|
||||
return d[v] ?? "[Null]"
|
||||
}
|
||||
if(p1.startsWith('calc')){
|
||||
const v = p1.split("::")[1]
|
||||
|
||||
Reference in New Issue
Block a user