[feat] sendname

This commit is contained in:
kwaroran
2023-12-24 22:08:15 +09:00
parent 036fc00f7b
commit 57081a3c3c
2 changed files with 2 additions and 2 deletions

View File

@@ -109,6 +109,6 @@
<TextInput bind:value={$DataBase.proomptSettings.postEndInnerFormat}/>
<Check bind:check={$DataBase.proomptSettings.sendChatAsSystem} name={language.sendChatAsSystem} className="mt-4"/>
<!-- <Check bind:check={$DataBase.proomptSettings.sendName} name={language.sendName} className="mt-4"/> -->
<Check bind:check={$DataBase.proomptSettings.sendName} name={language.sendName} className="mt-4"/>
<Check bind:check={$DataBase.proomptSettings.utilOverride} name={language.utilOverride} className="mt-4"/>
{/if}

View File

@@ -569,7 +569,7 @@ export async function sendChat(chatProcessIndex = -1,arg:{chatAdditonalTokens?:n
let attr:string[] = []
if(nowChatroom.type === 'group'){
if(nowChatroom.type === 'group' || (usingPromptTemplate && db.proomptSettings.sendName)){
formedChat = name + ': ' + formedChat
attr.push('nameAdded')
}