|
@@ -100,7 +100,7 @@ export default {
|
|
/* window-content*/
|
|
/* window-content*/
|
|
historyList:[],//当前窗口历史记录
|
|
historyList:[],//当前窗口历史记录
|
|
inputText:'',
|
|
inputText:'',
|
|
- model:'GPT-4 Turbo',//当前选择的模型
|
|
|
|
|
|
+ model:'Kimi',//当前选择的模型
|
|
modelOldValue:'',
|
|
modelOldValue:'',
|
|
modelList:[
|
|
modelList:[
|
|
{
|
|
{
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
|
|
|
this.windowContentLoading&&this.windowContentLoading.close()
|
|
this.windowContentLoading&&this.windowContentLoading.close()
|
|
//使用模型
|
|
//使用模型
|
|
- this.model = this.historyList.length?this.historyList[this.historyList.length-1].Model:'GPT-4 Turbo'
|
|
|
|
|
|
+ this.model = this.historyList.length?this.historyList[this.historyList.length-1].Model:'Kimi'
|
|
//如果有历史记录,则滚动到底部
|
|
//如果有历史记录,则滚动到底部
|
|
this.windowContentToBottom()
|
|
this.windowContentToBottom()
|
|
})
|
|
})
|
|
@@ -242,7 +242,7 @@ export default {
|
|
this.activeWindowId=0
|
|
this.activeWindowId=0
|
|
this.activeWindow=null
|
|
this.activeWindow=null
|
|
this.historyList=[]
|
|
this.historyList=[]
|
|
- this.model='GPT-4 Turbo'
|
|
|
|
|
|
+ this.model='Kimi'
|
|
this.aiFileIds=[]
|
|
this.aiFileIds=[]
|
|
//this.inputText=''
|
|
//this.inputText=''
|
|
this.isTyping = false
|
|
this.isTyping = false
|
|
@@ -300,9 +300,16 @@ export default {
|
|
//非新建窗口时,模型之间切换需弹窗提示
|
|
//非新建窗口时,模型之间切换需弹窗提示
|
|
if(this.activeWindowId!==0&&value!==''){
|
|
if(this.activeWindowId!==0&&value!==''){
|
|
//弹窗提示:切换模型
|
|
//弹窗提示:切换模型
|
|
- this.$confirm("切换回答模型,则切换后的模型无法联系上下文进行回答,确认切换吗?", "提示", {
|
|
|
|
|
|
+ this.$confirm(this.$t('ToolBox.AIQuestion.operation_des'), this.$t('ToolBox.AIQuestion.operation_tips'), {
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(()=>{
|
|
}).then(()=>{
|
|
|
|
+ //将相关值置空
|
|
|
|
+ this.activeWindowId=0
|
|
|
|
+ this.activeWindow=null
|
|
|
|
+ this.historyList=[]
|
|
|
|
+ this.aiFileIds=[]
|
|
|
|
+ //this.inputText=''
|
|
|
|
+ this.isTyping = false
|
|
this.$message.success('切换模型成功')
|
|
this.$message.success('切换模型成功')
|
|
}).catch(()=>{
|
|
}).catch(()=>{
|
|
//this.$message.success('已取消切换模型')
|
|
//this.$message.success('已取消切换模型')
|