perf: Tencent llm default args

This commit is contained in:
fit2cloud-chenyw
2025-08-01 16:03:17 +08:00
parent e317e7b9c2
commit 08f74bd24c
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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' },
@@ -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