优化聊天部分
This commit is contained in:
@@ -20,6 +20,9 @@ export class RoleConfigLoader {
|
||||
AiCharacter.basePrompt +
|
||||
"\n" +
|
||||
AiCharacter.additionPrompt;
|
||||
|
||||
console.log(AiCharacter.basePrompt);
|
||||
console.log(AiCharacter.additionPrompt);
|
||||
return prompt;
|
||||
}
|
||||
|
||||
@@ -30,7 +33,7 @@ export class RoleConfigLoader {
|
||||
*/
|
||||
public static getEmotionInstruction(roleId: number): string {
|
||||
const AiCharacter = ConfigManager.tables.TbAiCharacters.get(roleId);
|
||||
const globalPrompt = ConfigManager.tables.TbGlobalConfig.EmotionRating;
|
||||
const globalPrompt = ConfigManager.tables.TbGlobalConfig.EmotionBasePrompt;
|
||||
const prompt = globalPrompt + "\n" + AiCharacter.basePrompt;
|
||||
return prompt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user