Skip to content

Commit 7a1a663

Browse files
feat: Tencent cloud model
1 parent 2426649 commit 7a1a663

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
6.66 KB
Loading

frontend/src/entity/supplier.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import icon_xfhx_colorful from '@/assets/model/icon_xfhx_colorful.png'
66
import icon_gemini_colorful from '@/assets/model/icon_gemini_colorful.png'
77
import icon_openai_colorful from '@/assets/model/icon_openai_colorful.png'
88
import icon_kimi_colorful from '@/assets/model/icon_kimi_colorful.png'
9+
import icon_txhy_colorful from '@/assets/model/icon_txhy_colorful.png'
910

1011
type ModelArg = { key: string; val?: string | number; type: string; range?: string }
1112
type ModelOption = { name: string; api_domain?: string; args?: ModelArg[] }
@@ -78,7 +79,7 @@ export const supplierList: Array<{
7879
{
7980
id: 4,
8081
name: '腾讯混元',
81-
icon: icon_txy_colorful,
82+
icon: icon_txhy_colorful,
8283
model_config: {
8384
0: {
8485
api_domain: 'https://api.hunyuan.cloud.tencent.com/v1/',
@@ -215,6 +216,23 @@ export const supplierList: Array<{
215216
},
216217
},
217218
},
219+
{
220+
id: 9,
221+
name: '腾讯云',
222+
icon: icon_txy_colorful,
223+
model_config: {
224+
0: {
225+
api_domain: 'https://api.lkeap.cloud.tencent.com/v1',
226+
common_args: [{ key: 'temperature', val: 0.6, type: 'number', range: '[0, 1]' }],
227+
model_options: [
228+
{ name: 'deepseek-r1' },
229+
{ name: 'deepseek-r1-0528' },
230+
{ name: 'deepseek-v3' },
231+
{ name: 'deepseek-v3-0324' },
232+
],
233+
},
234+
},
235+
},
218236
]
219237

220238
export const base_model_options = (supplier_id: number, model_type?: number) => {

0 commit comments

Comments
 (0)