Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6f6f641f
authored
May 03, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:【AI 大模型】模型配置时,如果是聊天模型,必须填写 temperature、maxTokens、maxContexts
parent
91d876a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/views/ai/model/model/ModelForm.vue
+5
-2
No files found.
src/views/ai/model/model/ModelForm.vue
View file @
6f6f641f
...
...
@@ -4,7 +4,7 @@
ref=
"formRef"
:model=
"formData"
:rules=
"formRules"
label-width=
"1
2
0px"
label-width=
"1
3
0px"
v-loading=
"formLoading"
>
<el-form-item
label=
"所属平台"
prop=
"platform"
>
...
...
@@ -146,7 +146,10 @@ const formRules = reactive({
platform
:
[{
required
:
true
,
message
:
'所属平台不能为空'
,
trigger
:
'blur'
}],
type
:
[{
required
:
true
,
message
:
'模型类型不能为空'
,
trigger
:
'blur'
}],
sort
:
[{
required
:
true
,
message
:
'排序不能为空'
,
trigger
:
'blur'
}],
status
:
[{
required
:
true
,
message
:
'状态不能为空'
,
trigger
:
'blur'
}]
status
:
[{
required
:
true
,
message
:
'状态不能为空'
,
trigger
:
'blur'
}],
temperature
:
[{
required
:
true
,
message
:
'温度参数不能为空'
,
trigger
:
'blur'
}],
maxTokens
:
[{
required
:
true
,
message
:
'回复数 Token 数不能为空'
,
trigger
:
'blur'
}],
maxContexts
:
[{
required
:
true
,
message
:
'上下文数量不能为空'
,
trigger
:
'blur'
}]
})
const
formRef
=
ref
()
// 表单 Ref
const
apiKeyList
=
ref
([]
as
ApiKeyVO
[])
// API 密钥列表
...
...
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