Add chat formatting and use instruction prompt feature

This commit is contained in:
kwaroran
2024-04-23 18:31:32 +09:00
parent b33ab24894
commit bb0ad4c57e
5 changed files with 29 additions and 2 deletions

View File

@@ -467,6 +467,16 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
order: [db.openrouterProvider]
}
}
if(db.useInstructPrompt){
//@ts-ignore
delete body.messages
const prompt = applyChatTemplate(formated)
//@ts-ignore
body.prompt = prompt
}
}
if(aiModel === 'reverse_proxy' && db.reverseProxyOobaMode){