mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: tts mode show default_value not working correctly
--bug=1050963 --user=刘瑞斌 【模型管理】语音输出模型,参数没勾选显示默认值,但是在应用中显示了默认值 https://www.tapd.cn/57709429/s/1638375
This commit is contained in:
parent
cc3813e97e
commit
4c5e39fe6b
|
|
@ -76,7 +76,7 @@ const open = (model_id: string, application_id?: string, model_setting_data?: an
|
|||
api.then((ok) => {
|
||||
model_form_field.value = ok.data
|
||||
const resp = ok.data
|
||||
.map((item: any) => ({ [item.field]: item.default_value }))
|
||||
.map((item: any) => ({ [item.field]: item.show_default_value !== false ? item.default_value : undefined }))
|
||||
.reduce((x, y) => ({ ...x, ...y }), {})
|
||||
// 删除不存在的字段
|
||||
if (model_setting_data) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue