From 089470cc6bd1a60ba5ca1c679f5e5e3b0c56e882 Mon Sep 17 00:00:00 2001 From: Voine Date: Sat, 4 Mar 2023 23:03:43 +0800 Subject: [PATCH] fix chat bug --- ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTNetService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTNetService.kt b/ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTNetService.kt index 6a7759a..1c85395 100644 --- a/ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTNetService.kt +++ b/ChatGPT/src/main/java/com/chatwaifu/chatgpt/ChatGPTNetService.kt @@ -48,6 +48,7 @@ class ChatGPTNetService(val context: Context) { } fun setSystemRole(role: String) { + sendMessageAssistantList.clear() systemRole = RequestMessageBean( RequestMessageBean.ROLE_SYSTEM, role