[fix] oobabooga prompt template and autosuggest (#226)

# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [x] Did you added a type def?

# Description
The changes in #225 didn't seem to be enough, so I made an additional
fix.
This commit is contained in:
kwaroran
2023-08-04 11:42:43 +09:00
committed by GitHub
8 changed files with 39 additions and 28 deletions

View File

@@ -399,7 +399,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
let blockingUrl = db.textgenWebUIBlockingURL.replace(/\/api.*/, "/api/v1/generate")
let bodyTemplate:any
const suggesting = model === "submodel"
const proompt = stringlizeChatOba(formated, suggesting)
const proompt = stringlizeChatOba(formated, currentChar.name, suggesting)
const stopStrings = getStopStrings(suggesting)
console.log(proompt)
console.log(stopStrings)