|
@@ -43,6 +43,10 @@ export class CharacterDetailComponent implements OnInit {
|
|
|
onChatInit: (chat: FmodeChat) => {
|
|
|
|
|
|
chat.role.set("name", this.character.name);
|
|
|
+ let newAvatar = "https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/U6UU36FsN8-0.png?x-image-process=image/resize,m_fixed,w_300"
|
|
|
+ chat.role.set("avatar", newAvatar);
|
|
|
+ chat.role.set("desc", "新的角色简介");
|
|
|
+ console.log(chat.role?.toJSON())
|
|
|
|
|
|
|
|
|
chat.role.set("prompt", `你的名字是${this.character.name},你将作为${this.character.name}和用户聊天,
|
|
@@ -58,6 +62,8 @@ export class CharacterDetailComponent implements OnInit {
|
|
|
},
|
|
|
onChatSaved: (chat: FmodeChat) => {
|
|
|
console.log("onChatSaved",chat,chat?.chatSession,chat?.chatSession?.id);
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
};
|
|
|
openChatPanelModal(this.modalCtrl, chatOptions);
|