Skip to content

Commit 08f74bd

Browse files
perf: Tencent llm default args
1 parent e317e7b commit 08f74bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/src/entity/supplier.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export const supplierList: Array<{
5757
model_config: {
5858
0: {
5959
api_domain: 'https://api.hunyuan.cloud.tencent.com/v1/',
60+
common_args: [{ key: 'temperature', val: 1.0, type: 'number', range: '[0, 2]' }],
6061
model_options: [
6162
{ name: 'hunyuan-turbos-latest' },
6263
{ name: 'hunyuan-turbos-longtext-128k-20250325' },

frontend/src/views/system/model/ModelForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ const getModelDefaultArgs = () => {
236236
common_args.push(...modelArgs)
237237
}
238238
const argMap = common_args.reduce((acc: any, item: any) => {
239-
acc.set(item.key, item)
239+
acc.set(item.key, { ...item, name: item.key })
240240
return acc
241241
}, new Map())
242242
return argMap

0 commit comments

Comments
 (0)