[feat] add autofill option

This commit is contained in:
kwaroran
2023-09-23 16:18:20 +09:00
parent a7aea17c98
commit 4a34dc3e23
3 changed files with 7 additions and 1 deletions

View File

@@ -201,7 +201,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
replacerURL = replacerURL.replace("risu::", '')
}
if(aiModel === 'reverse_proxy'){
if(aiModel === 'reverse_proxy' && db.autofillRequestUrl){
if(replacerURL.endsWith('v1')){
replacerURL += '/chat/completions'
}