diff --git a/frontend/src/entity/supplier.ts b/frontend/src/entity/supplier.ts index 349993b7..5201a371 100644 --- a/frontend/src/entity/supplier.ts +++ b/frontend/src/entity/supplier.ts @@ -57,6 +57,7 @@ export const supplierList: Array<{ model_config: { 0: { api_domain: 'https://api.hunyuan.cloud.tencent.com/v1/', + common_args: [{ key: 'temperature', val: 1.0, type: 'number', range: '[0, 2]' }], model_options: [ { name: 'hunyuan-turbos-latest' }, { name: 'hunyuan-turbos-longtext-128k-20250325' }, diff --git a/frontend/src/views/system/model/ModelForm.vue b/frontend/src/views/system/model/ModelForm.vue index 9a9d715c..5b515d97 100644 --- a/frontend/src/views/system/model/ModelForm.vue +++ b/frontend/src/views/system/model/ModelForm.vue @@ -236,7 +236,7 @@ const getModelDefaultArgs = () => { common_args.push(...modelArgs) } const argMap = common_args.reduce((acc: any, item: any) => { - acc.set(item.key, item) + acc.set(item.key, { ...item, name: item.key }) return acc }, new Map()) return argMap