feat: 将加载中改为思考中
This commit is contained in:
@@ -46,7 +46,7 @@ const processedText = computed(() => {
|
||||
const textStr = String(props.text);
|
||||
|
||||
// 处理加载状态的文本
|
||||
if (textStr.includes("加载中") || textStr.includes("...")) {
|
||||
if (textStr.includes("思考中") || textStr.includes("...")) {
|
||||
return textStr;
|
||||
}
|
||||
|
||||
|
||||
@@ -820,7 +820,7 @@ const sendChat = async (message, isInstruct = false) => {
|
||||
const aiMsg = {
|
||||
msgId: `msg_${chatMsgList.value.length}`,
|
||||
msgType: MessageRole.AI,
|
||||
msg: "加载中",
|
||||
msg: "思考中",
|
||||
isLoading: true,
|
||||
messageId: currentSessionMessageId,
|
||||
replyMessageId: '',
|
||||
@@ -892,7 +892,7 @@ const stopRequest = async () => {
|
||||
chatMsgList.value[aiMsgIndex].isLoading = false;
|
||||
if (chatMsgList.value[aiMsgIndex].msg &&
|
||||
chatMsgList.value[aiMsgIndex].msg.trim() &&
|
||||
!chatMsgList.value[aiMsgIndex].msg.startsWith("加载中")) {
|
||||
!chatMsgList.value[aiMsgIndex].msg.startsWith("思考中")) {
|
||||
// 保留已显示内容
|
||||
} else {
|
||||
chatMsgList.value[aiMsgIndex].msg = "请求已停止";
|
||||
|
||||
Reference in New Issue
Block a user