This commit is contained in:
X1627315083
2025-05-22 11:18:11 +08:00
parent 7ba4c70baf
commit 7105f3cf5c
2 changed files with 44 additions and 28 deletions

View File

@@ -161,7 +161,6 @@ export default defineComponent({
}
emit('chatChange',{type:JSON.parse(event.data).status})
}
};
eventSource.onerror = function(error) {
if (eventSource.readyState === EventSource.CLOSED) {
@@ -195,7 +194,7 @@ export default defineComponent({
}else{
let think = ''
let message = ''
if(text.split('[TEXT]').length > 1){
if(text.split('[TEXT]').length > 1 && text.split('[THINK]').length > 1){
think = text.split('[TEXT]')[0]
text.split('[TEXT]').forEach((text:any,index:number) => {
if(index == 0)return