Browse Source

情绪大模型取消请求前次数判断,由工作流接口进行判断。

milestone-20250820-金币兑换Token
宋杰 3 days ago
parent
commit
bca5a27e28
  1. 48
      src/views/AiEmotion.vue

48
src/views/AiEmotion.vue

@ -2053,31 +2053,31 @@ async function handleSendMessage(input, onComplete) {
});
//
await chatStore.getUserCount(); //
if (chatStore.UserCount <= 0) {
const aiMessage = reactive({
sender: "ai",
text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。",
});
messages.value.push(aiMessage);
// await chatStore.getUserCount(); //
// if (chatStore.UserCount <= 0) {
// const aiMessage = reactive({
// sender: "ai",
// text: "0使",
// });
// messages.value.push(aiMessage);
// AIemotion store
emotionStore.addConversation({
sender: "ai",
text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。",
timestamp: new Date().toISOString(),
});
//
isRotating.value = false;
messages.value = [...previousMessages, ...messages.value];
//
if (onComplete && typeof onComplete === "function") {
onComplete();
//
currentOnCompleteCallback.value = null;
}
return;
}
// // AIemotion store
// emotionStore.addConversation({
// sender: "ai",
// text: "0使",
// timestamp: new Date().toISOString(),
// });
// //
// isRotating.value = false;
// messages.value = [...previousMessages, ...messages.value];
// //
// if (onComplete && typeof onComplete === "function") {
// onComplete();
// //
// currentOnCompleteCallback.value = null;
// }
// return;
// }
//
const thinkingMessageRef = await showThinkingProcess();

Loading…
Cancel
Save