|
|
@@ -298,6 +298,7 @@ class KeyboardViewModel : ViewModel() {
|
|
|
// 用户粘贴板中的内容
|
|
|
content = _userClipboardData.value ?: ""
|
|
|
)
|
|
|
+ _chatSuperReplyResult.value = ""
|
|
|
mKeyboardRepository.chatSuperReply(req, onSuccess = {
|
|
|
// 只有一条数据,直接添加到输入框
|
|
|
_chatSuperReplyResult.value = it.content
|
|
|
@@ -315,6 +316,7 @@ class KeyboardViewModel : ViewModel() {
|
|
|
onSuccess: () -> Unit,
|
|
|
onFail: (String) -> Unit
|
|
|
) {
|
|
|
+ _aiChatListResult.value = listOf<String>()
|
|
|
val req = SuperSpeakReq(
|
|
|
// 键盘Id
|
|
|
keyboardId = _currentKeyboardInfo.value?.id ?: "",
|
|
|
@@ -338,6 +340,7 @@ class KeyboardViewModel : ViewModel() {
|
|
|
onSuccess: () -> Unit,
|
|
|
onFail: (String) -> Unit
|
|
|
) {
|
|
|
+ _aiChatListResult.value = listOf<String>()
|
|
|
mKeyboardRepository.chatPrologue(name, onSuccess = {
|
|
|
// 有多条数据,需要跳转列表页面中显示
|
|
|
_aiChatListResult.value = it.list
|