@@ -67,7 +80,7 @@
@@ -101,6 +114,7 @@ import ChatList from './ChatList.vue'
import ChatRow from './ChatRow.vue'
import ChatAnswer from './ChatAnswer.vue'
import MdComponent from './component/MdComponent.vue'
+import PredictChartBlock from './component/PredictChartBlock.vue'
import { useI18n } from 'vue-i18n'
import { find } from 'lodash-es'
@@ -389,6 +403,7 @@ async function clickAnalysis(id?: number) {
if (currentRecord == undefined) {
return
}
+ isAnalysisTyping.value = true
currentChat.value.records[_index].analysis = ''
try {
@@ -484,7 +499,9 @@ async function clickPredict(id?: number) {
if (currentRecord == undefined) {
return
}
+ isPredictTyping.value = true
currentChat.value.records[_index].predict = ''
+ currentChat.value.records[_index].predict_data = ''
try {
const response = await chatApi.predict(id)
@@ -548,6 +565,9 @@ async function clickPredict(id?: number) {
predict_answer += data.content
currentChat.value.records[_index].predict = predict_answer
break
+ case 'predict':
+ currentChat.value.records[_index].predict_data = data.content
+ break
case 'predict_finish':
isPredictTyping.value = false
break