|
@@ -84,6 +84,7 @@
|
|
<div class="t_b_ba_item" @click="sendType('智能出题')">智能出题</div>
|
|
<div class="t_b_ba_item" @click="sendType('智能出题')">智能出题</div>
|
|
<!-- <div class="t_b_ba_item" @click="sendType('优秀标兵')">优秀标兵</div> -->
|
|
<!-- <div class="t_b_ba_item" @click="sendType('优秀标兵')">优秀标兵</div> -->
|
|
<div class="t_b_ba_item" @click="sendType('扩展知识')">扩展知识</div>
|
|
<div class="t_b_ba_item" @click="sendType('扩展知识')">扩展知识</div>
|
|
|
|
+ <div class="t_b_ba_item" @click="clear()">清空聊天记录</div>
|
|
</div>
|
|
</div>
|
|
<div class="t_b_inputArea">
|
|
<div class="t_b_inputArea">
|
|
<!-- <div class="t_b_tape" @click="goTape()"></div> -->
|
|
<!-- <div class="t_b_tape" @click="goTape()"></div> -->
|
|
@@ -129,6 +130,9 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ clear(){
|
|
|
|
+ this.chatList = [];
|
|
|
|
+ },
|
|
// 获取ai对话
|
|
// 获取ai对话
|
|
getAiContent(_uid) {
|
|
getAiContent(_uid) {
|
|
let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|
|
let _source = new EventSource(`https://gpt4.cocorobo.cn/stream/${_uid}`); //http://gpt4.cocorobo.cn:8011/stream/ https://gpt4.cocorobo.cn/stream/
|