feat: Tencent cloud model

This commit is contained in:
fit2cloud-chenyw
2025-08-05 16:43:56 +08:00
parent 2426649921
commit 7a1a663cd1
2 changed files with 19 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+19 -1
View File
@@ -6,6 +6,7 @@ import icon_xfhx_colorful from '@/assets/model/icon_xfhx_colorful.png'
import icon_gemini_colorful from '@/assets/model/icon_gemini_colorful.png'
import icon_openai_colorful from '@/assets/model/icon_openai_colorful.png'
import icon_kimi_colorful from '@/assets/model/icon_kimi_colorful.png'
import icon_txhy_colorful from '@/assets/model/icon_txhy_colorful.png'
type ModelArg = { key: string; val?: string | number; type: string; range?: string }
type ModelOption = { name: string; api_domain?: string; args?: ModelArg[] }
@@ -78,7 +79,7 @@ export const supplierList: Array<{
{
id: 4,
name: '腾讯混元',
icon: icon_txy_colorful,
icon: icon_txhy_colorful,
model_config: {
0: {
api_domain: 'https://api.hunyuan.cloud.tencent.com/v1/',
@@ -215,6 +216,23 @@ export const supplierList: Array<{
},
},
},
{
id: 9,
name: '腾讯云',
icon: icon_txy_colorful,
model_config: {
0: {
api_domain: 'https://api.lkeap.cloud.tencent.com/v1',
common_args: [{ key: 'temperature', val: 0.6, type: 'number', range: '[0, 1]' }],
model_options: [
{ name: 'deepseek-r1' },
{ name: 'deepseek-r1-0528' },
{ name: 'deepseek-v3' },
{ name: 'deepseek-v3-0324' },
],
},
},
},
]
export const base_model_options = (supplier_id: number, model_type?: number) => {