Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yujian
lmp_web
Commits
4e37ed14
Commit
4e37ed14
authored
Dec 21, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改相关名词
parent
43074339
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
16 deletions
+16
-16
development.js
src/core/config/development.js
+1
-1
gptStaticDict.js
src/staticDict/gptStaticDict.js
+5
-5
index.vue
...ning/modelService/testOnline/components/leftBox/index.vue
+5
-5
index.vue
...ing/modelService/testOnline/components/rightBox/index.vue
+5
-5
No files found.
src/core/config/development.js
View file @
4e37ed14
module
.
exports
=
{
baseUrl
:
'http://1
27.0.0.1
:8082/'
,
baseUrl
:
'http://1
92.168.83.215
:8082/'
,
wsUrl
:
'ws://127.0.0.1:7860/'
,
projectName
:
'灵境大模型平台'
}
src/staticDict/gptStaticDict.js
View file @
4e37ed14
...
...
@@ -320,7 +320,7 @@ const TaskType = new DictionaryBase('任务类型', [
name
:
'模型压缩'
,
symbol
:
'ModelCompression'
}
]);
Vue
.
prototype
.
TaskType
=
TaskType
;
// const SftTaskType = new DictionaryBase('sft任务类型', [
...
...
@@ -334,7 +334,7 @@ Vue.prototype.TaskType = TaskType;
// name: '文生图模型',
// symbol: ''
// }
// ]);
// Vue.prototype.SftTaskType = SftTaskType;
const
TaskStatus
=
new
DictionaryBase
(
'任务状态'
,
[
...
...
@@ -402,12 +402,12 @@ Vue.prototype.PublishWay = PublishWay;
const
ModeOfSpeaking
=
new
DictionaryBase
(
'对话模式'
,
[
{
id
:
0
,
name
:
'
LLM 对话
'
,
name
:
'
通用智能问答
'
,
symbol
:
'llm'
},
{
id
:
1
,
name
:
'知识库问答'
,
name
:
'
专业
知识库问答'
,
symbol
:
'repository'
}
// {
...
...
@@ -418,7 +418,7 @@ const ModeOfSpeaking = new DictionaryBase('对话模式', [
]);
Vue
.
prototype
.
ModeOfSpeaking
=
ModeOfSpeaking
;
const
RunningStatus
=
new
DictionaryBase
(
'运行状态'
,
[
{
id
:
-
1
,
name
:
'训练失败'
,
...
...
src/views/gptTraining/modelService/testOnline/components/leftBox/index.vue
View file @
4e37ed14
<!--左侧操作界面 -->
<
template
>
<el-form
label-position=
"left"
ref=
"form"
label-width=
"120px"
:model=
"form"
:size=
"defaultFormItemSize"
style=
"padding:20px;width:400px"
>
<el-form-item
label=
"
对话
模式:"
>
<el-form-item
label=
"
问答
模式:"
>
<el-select
v-model=
"form.pattern"
placeholder=
"请选择"
>
<el-option
v-for=
"item in ModeOfSpeaking.getList()"
:key=
"item.id"
:label=
"item.name"
:value=
"item.name"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"
LLM模型
:"
>
<el-form-item
label=
"
模型选择
:"
>
<el-cascader
v-model=
"form.model_name"
ref=
"modelCascader"
:options=
"modelList"
:props=
'
{ label: "name", value: "name", emitPath: false }' @change="changeModel">
</el-cascader>
</el-form-item>
<el-form-item
label=
"Temperature:"
>
...
...
@@ -31,7 +31,7 @@
{{
form
.
prompt_template
}}
</div>
</el-form-item>
<el-form-item
label-width=
"0px"
v-if=
"form.pattern == '知识库问答'"
>
<el-form-item
label-width=
"0px"
v-if=
"form.pattern == '
专业
知识库问答'"
>
<el-collapse
value=
"1"
>
<el-collapse-item
name=
"1"
>
<template
slot=
"title"
>
知识库配置
</
template
>
...
...
@@ -44,7 +44,7 @@
<el-form-item
label=
"匹配知识条数:"
style=
"margin-bottom:30px"
>
<el-input-number
v-model=
"form.knowledgeConfige.top_k"
:min=
"1"
:max=
"20"
></el-input-number>
</el-form-item>
<el-form-item
label=
"
知识匹配分数阈值
:"
>
<el-form-item
label=
"
匹配精度
:"
>
<el-slider
v-model=
"knowledgeScoreThreshold"
:format-tooltip=
"formatTooltip"
@
change=
"form.knowledgeConfige.score_threshold = knowledgeScoreThreshold / 100"
></el-slider>
</el-form-item>
</el-collapse-item>
...
...
@@ -87,7 +87,7 @@ export default {
knowledgeScoreThreshold
:
50
,
form
:
{
pattern
:
'
LLM 对话
'
,
// 对话模式
pattern
:
'
通用智能问答
'
,
// 对话模式
model_name
:
undefined
,
// 模型名称
temperature
:
0.7
,
prompt_template
:
''
,
...
...
src/views/gptTraining/modelService/testOnline/components/rightBox/index.vue
View file @
4e37ed14
...
...
@@ -6,7 +6,7 @@
<div
v-for=
"(item, index) in myHistory"
:key=
"index"
>
<div
class=
"userBox"
>
<div
class=
"content"
>
<contentView
:content=
"item.content"
/>
</div>
<div
class=
"icon"
>
...
...
@@ -96,9 +96,9 @@ export default {
this
.
heistoryRotate
=
this
.
chatForm
.
heistoryRotate
this
.
param
.
prompt_template
=
this
.
isPromptTemplate
?
this
.
chatForm
.
prompt_template
:
undefined
let
apiUrl
if
(
this
.
chatForm
.
pattern
===
'
LLM 对话
'
)
{
if
(
this
.
chatForm
.
pattern
===
'
通用智能问答
'
)
{
apiUrl
=
'/2api/chat/chat'
}
else
if
(
this
.
chatForm
.
pattern
===
'知识库问答'
)
{
}
else
if
(
this
.
chatForm
.
pattern
===
'
专业
知识库问答'
)
{
apiUrl
=
'/2api/chat/knowledge_base_chat'
this
.
param
=
{
...
this
.
param
,
...
this
.
chatForm
.
knowledgeConfige
}
}
else
if
(
this
.
chatForm
.
pattern
===
'搜索引擎问答'
)
{
...
...
@@ -128,9 +128,9 @@ export default {
},
onmessage
(
data
)
{
let
nowChat
=
this
.
myHistory
[
this
.
myHistory
.
length
-
1
]
if
(
this
.
chatForm
.
pattern
===
'
LLM 对话
'
)
{
if
(
this
.
chatForm
.
pattern
===
'
通用智能问答
'
)
{
nowChat
.
answer
+=
data
}
else
if
(
this
.
chatForm
.
pattern
===
'知识库问答'
)
{
}
else
if
(
this
.
chatForm
.
pattern
===
'
专业
知识库问答'
)
{
console
.
log
(
data
);
let
temporary
=
JSON
.
parse
(
`[
${
data
}
]`
.
replace
(
/}{/g
,
'},{'
))
console
.
log
(
temporary
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment