|
@@ -3,10 +3,8 @@
|
|
<div class="window-list-wrap">
|
|
<div class="window-list-wrap">
|
|
<div class="window-title">
|
|
<div class="window-title">
|
|
<div class="title-wrap">
|
|
<div class="title-wrap">
|
|
- <p style="color: #333333;font-size: 20px;font-weight: 600;">HORIZON INSIGHTS</p>
|
|
|
|
- <span style="color: #666666;font-size: 16px;">弘则研究AI问答小助手</span>
|
|
|
|
|
|
+ <span style="color: #666666;font-size: 16px;">研究AI问答小助手</span>
|
|
</div>
|
|
</div>
|
|
- <div class="icon"><img src="~@/assets/img/icons/horizon.png" /></div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="add-btn" @click="handleAddNewWindow"><i class="el-icon-circle-plus-outline"></i>新建对话窗口</div>
|
|
<div class="add-btn" @click="handleAddNewWindow"><i class="el-icon-circle-plus-outline"></i>新建对话窗口</div>
|
|
<div class="list-wrap hidden-scrollbar">
|
|
<div class="list-wrap hidden-scrollbar">
|
|
@@ -28,10 +26,10 @@
|
|
<div class="content-header">
|
|
<div class="content-header">
|
|
<div class="title-wrap">
|
|
<div class="title-wrap">
|
|
<p>{{activeWindowId<=0?'新对话窗口':activeWindow.TopicName||''}}</p>
|
|
<p>{{activeWindowId<=0?'新对话窗口':activeWindow.TopicName||''}}</p>
|
|
- <span>{{activeWindowId<=0?'弘则AI助手使用说明':`${historyList.length||0} messages`}}</span>
|
|
|
|
|
|
+ <span>{{activeWindowId<=0?'AI助手使用说明':`${historyList.length||0} messages`}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="select-box">
|
|
<div class="select-box">
|
|
- <el-select v-model="model" :class="{'hint':showHint}" :disabled="isTyping||(windowContentLoading&&windowContentLoading.visible)" ref="modelSelect"
|
|
|
|
|
|
+ <!-- <el-select v-model="model" :class="{'hint':showHint}" :disabled="isTyping||(windowContentLoading&&windowContentLoading.visible)" ref="modelSelect"
|
|
@click.native="selectClick"
|
|
@click.native="selectClick"
|
|
@change="changeModel">
|
|
@change="changeModel">
|
|
<el-option v-for="item in modelList" :key="item.label"
|
|
<el-option v-for="item in modelList" :key="item.label"
|
|
@@ -40,7 +38,7 @@
|
|
<span style="float:left">{{item.label}}</span>
|
|
<span style="float:left">{{item.label}}</span>
|
|
<span style="float:right"><img :src="item.icon" style="margin-top:5px;width:24px;height:24px;"/></span>
|
|
<span style="float:right"><img :src="item.icon" style="margin-top:5px;width:24px;height:24px;"/></span>
|
|
</el-option>
|
|
</el-option>
|
|
- </el-select>
|
|
|
|
|
|
+ </el-select> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 仅这一部分滚动 -->
|
|
<!-- 仅这一部分滚动 -->
|
|
@@ -86,17 +84,25 @@ export default {
|
|
/* window-content*/
|
|
/* window-content*/
|
|
historyList:[],//当前窗口历史记录
|
|
historyList:[],//当前窗口历史记录
|
|
inputText:'',
|
|
inputText:'',
|
|
- model:'',//当前选择的模型
|
|
|
|
|
|
+ model:'GPT-4 Turbo',//当前选择的模型
|
|
modelOldValue:'',
|
|
modelOldValue:'',
|
|
modelList:[
|
|
modelList:[
|
|
{
|
|
{
|
|
- label:'gpt-3.5-turbo',
|
|
|
|
- icon:require('@/assets/img/icons/chat-gpt.png'),
|
|
|
|
|
|
+ label:'GPT-4 Turbo',
|
|
|
|
+ icon:require('@/assets/img/icons/gpt-4-turbo.png'),
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'GPT4',
|
|
|
|
+ icon:require('@/assets/img/icons/gpt-4.png'),
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label:'gpt-3.5-turbo-16k',
|
|
label:'gpt-3.5-turbo-16k',
|
|
icon:require('@/assets/img/icons/chat-gpt-16k.png'),
|
|
icon:require('@/assets/img/icons/chat-gpt-16k.png'),
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ label:'gpt-3.5-turbo',
|
|
|
|
+ icon:require('@/assets/img/icons/chat-gpt.png'),
|
|
|
|
+ },
|
|
{
|
|
{
|
|
label:'eta',
|
|
label:'eta',
|
|
icon:require('@/assets/img/icons/horizon.png'),
|
|
icon:require('@/assets/img/icons/horizon.png'),
|
|
@@ -329,7 +335,7 @@ export default {
|
|
aiQAInterence.sendChatMsg({
|
|
aiQAInterence.sendChatMsg({
|
|
AiChatTopicId:this.activeWindowId<=0?0:this.activeWindowId,
|
|
AiChatTopicId:this.activeWindowId<=0?0:this.activeWindowId,
|
|
Ask:inputText,
|
|
Ask:inputText,
|
|
- Model:this.model
|
|
|
|
|
|
+ // Model:this.model
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
//在回答未获取前切换了新窗口
|
|
//在回答未获取前切换了新窗口
|
|
if(this.historyList.length===0){
|
|
if(this.historyList.length===0){
|