Commit f2b9b2b4 authored by mhw's avatar mhw

优化

parent ce4b5716
module.exports = { module.exports = {
baseUrl: 'http://192.168.0.36:8082/', baseUrl: 'http://192.168.0.34:8082/',
wsUrl: 'ws://192.168.0.36:7860/', wsUrl: 'ws://192.168.0.36:7860/',
projectName: '灵境大模型平台' projectName: '灵境大模型平台'
} }
...@@ -57,7 +57,6 @@ export default { ...@@ -57,7 +57,6 @@ export default {
props: ['url'], props: ['url'],
computed: { computed: {
fileType () { fileType () {
console.log(this.url);
return this.url.split('.').pop().toLowerCase(); return this.url.split('.').pop().toLowerCase();
} }
}, },
...@@ -128,7 +127,6 @@ export default { ...@@ -128,7 +127,6 @@ export default {
}, },
rendered () { rendered () {
this.fullscreenLoading = false this.fullscreenLoading = false
console.log('渲染完成')
} }
} }
} }
......
...@@ -260,7 +260,6 @@ export default { ...@@ -260,7 +260,6 @@ export default {
switchModel (versionId) { // 切换模型 switchModel (versionId) { // 切换模型
this.openLoading('LLM模型加载中') this.openLoading('LLM模型加载中')
ModelVersion.change(this, { versionId: versionId }).then(res => { ModelVersion.change(this, { versionId: versionId }).then(res => {
console.log(res);
this.loading.close(); this.loading.close();
}).catch(e => { }).catch(e => {
this.loading.close(); this.loading.close();
......
...@@ -126,7 +126,6 @@ export default { ...@@ -126,7 +126,6 @@ export default {
}) })
this.inputContent = null; this.inputContent = null;
console.log(this.myHistory.slice(0, -1).slice(-this.heistoryRotate));
this.param.history = [] this.param.history = []
this.myHistory.slice(0, -1).slice(-this.heistoryRotate).forEach((item) => { this.myHistory.slice(0, -1).slice(-this.heistoryRotate).forEach((item) => {
this.param.history.push(...[{ role: item.role, content: item.content }, { role: 'assistant', content: item.excludeReferenceAnswer}]) this.param.history.push(...[{ role: item.role, content: item.content }, { role: 'assistant', content: item.excludeReferenceAnswer}])
......
...@@ -27,11 +27,11 @@ export default { ...@@ -27,11 +27,11 @@ export default {
}, },
{ {
name: '基于大语言模型与知识图谱双轮驱动的机械维修保障智能问答系统', name: '基于大语言模型与知识图谱双轮驱动的机械维修保障智能问答系统',
url: 'http://127.0.0.1:8085' url: `http://${window.location.hostname}:${window.location.port}/#/main/welcome`
}, },
{ {
name: '基于gstore的知识图谱系统', name: '基于gstore的知识图谱系统',
url: 'http://127.0.0.1:8085' url: `http://${window.location.hostname}:${window.location.port}/#/main/welcome`
} }
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment