|
@@ -673,13 +673,18 @@ export default {
|
|
|
// 找到结束标签
|
|
|
const content = answer.substring(0, endMatch.index);
|
|
|
if (content) {
|
|
|
- segments.push({ type: 'think', content:content });
|
|
|
+ segments.push({ type: 'think', content:content,show:false });
|
|
|
}
|
|
|
answer = answer.substring(endMatch.index + endMatch[0].length);
|
|
|
inThink = false;
|
|
|
} else {
|
|
|
// 没有找到结束标签,剩余所有内容都是think
|
|
|
- segments.push({ type: 'think', content: answer });
|
|
|
+ if(chat.id == this.currentMessage.id){
|
|
|
+ segments.push({ type: 'think', content: answer,show:true });
|
|
|
+ }else{
|
|
|
+ segments.push({ type: 'think', content: answer,show:false });
|
|
|
+ }
|
|
|
+
|
|
|
answer = '';
|
|
|
}
|
|
|
} else {
|