解决AI大模型标识错误显示到问题中 2042/2
authorluozheng <1732036298@qq.com>
Mon, 4 Aug 2025 07:32:58 +0000 (15:32 +0800)
committerluozheng <1732036298@qq.com>
Mon, 4 Aug 2025 07:32:58 +0000 (15:32 +0800)
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp
code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AivoiceChatContentListItemView.cpp

index 0f248c3..afec342 100644 (file)
@@ -1636,7 +1636,10 @@ namespace OHOS
         if (get_bk_websocket_tts_tick() == 0) // 代表可以发录音文本
         {
             if (AiVoiceModel::GetInstance().GetInit_4gai_task())
+            {
+                LOS_Msleep(200);
                 AiVoiceModel::GetInstance().ProcessTextByPunctuation();
+            }
         }
         else
         {
index 0ec9239..48c92bd 100644 (file)
@@ -108,6 +108,11 @@ namespace OHOS
             mindLabel.SetY(chatContentScrollView.GetY() + chatContentScrollView.GetHeight()- 40);
             mindLabel.SetVisible(true);
         }
+        else
+        {
+            chatContentScrollView.Resize(isAiAnswerFlag ? QUESTION_CHATCONTENTSCROLLVIEW_W : ANSWER_CHATCONTENTSCROLLVIEW_W, GetHeight() - 30);
+            mindLabel.SetVisible(false);
+        }
     }
 
     void AivoiceChatContentListItemView::SetUpChild()