[feat] ooba auto url

This commit is contained in:
kwaroran
2023-07-09 17:26:11 +09:00
parent e722efb73d
commit 8ba2c24674

View File

@@ -350,6 +350,9 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
let bodyTemplate:any let bodyTemplate:any
const proompt = stringlizeChatOba(formated, currentChar?.name ?? '') const proompt = stringlizeChatOba(formated, currentChar?.name ?? '')
const isNewAPI = DURL.includes('api') const isNewAPI = DURL.includes('api')
if(!DURL.endsWith('generate')){
DURL = DURL + "/v1/generate"
}
const stopStrings = [`\nUser:`,`\nuser:`,`\n${db.username}:`] const stopStrings = [`\nUser:`,`\nuser:`,`\n${db.username}:`]
console.log(proompt) console.log(proompt)
bodyTemplate = { bodyTemplate = {