role 수정
This commit is contained in:
parent
030bb50ad9
commit
9173a097e0
|
|
@ -46,13 +46,13 @@ public class ChatUI : MonoBehaviour
|
|||
|
||||
void Set_Chat(ChatHistory chat)
|
||||
{
|
||||
if (chat.role.Equals("girl"))
|
||||
if (chat.role.Equals("assistant"))
|
||||
{
|
||||
var chatscript = DSUtil.Get_Clone<ChatGirlCard>(go_chatGirlCard, tf_parent);
|
||||
chatscript.Set(m_Data.n_GirlID, chat.content);
|
||||
list_chat.Add(chatscript.gameObject);
|
||||
}
|
||||
else if (chat.role.Equals("me"))
|
||||
else if (chat.role.Equals("user"))
|
||||
{
|
||||
var chatscript = DSUtil.Get_Clone<ChatMyCard>(go_chatMyCard, tf_parent);
|
||||
chatscript.Set(chat.content);
|
||||
|
|
@ -97,7 +97,7 @@ public class ChatUI : MonoBehaviour
|
|||
|
||||
var myhistory = new ChatHistory
|
||||
{
|
||||
role = "me",
|
||||
role = "user",
|
||||
content = if_msg.text,
|
||||
timestamp = InternetTime.Ins.Time.ToString()
|
||||
};
|
||||
|
|
@ -125,7 +125,7 @@ public class ChatUI : MonoBehaviour
|
|||
|
||||
var girlchathistory = new ChatHistory
|
||||
{
|
||||
role = "girl",
|
||||
role = "assistant",
|
||||
content = data.response,
|
||||
timestamp = InternetTime.Ins.Time.ToString()
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue