Skip to content

Commit aa9d7ee

Browse files
committed
update:新增qwen模型选择
1 parent fc389dc commit aa9d7ee

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

web/src/config/providerConfig.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ export const configTypeMap = {
1414
{ label: 'Spark', value: 'spark', key: '2' },
1515
{ label: 'Zhipu', value: 'zhipu', key: '3' },
1616
{ label: 'AliYun', value: 'aliyun', key: '4' },
17-
{ label: 'Doubao', value: 'doubao', key: '5' },
18-
{ label: 'DeepSeek', value: 'deepseek', key: '6' },
19-
{ label: 'ChatGLM', value: 'chatglm', key: '7' },
20-
{ label: 'Gemini', value: 'gemini', key: '8' },
21-
{ label: 'LMStudio', value: 'lmstudio', key: '9' },
22-
{ label: 'Fastgpt', value: 'fastgpt', key: '10' },
23-
{ label: 'Xinference', value: 'xinference', key: '11' },
17+
{ label: 'Qwen', value: 'qwen', key: '5' },
18+
{ label: 'Doubao', value: 'doubao', key: '6' },
19+
{ label: 'DeepSeek', value: 'deepseek', key: '7' },
20+
{ label: 'ChatGLM', value: 'chatglm', key: '8' },
21+
{ label: 'Gemini', value: 'gemini', key: '9' },
22+
{ label: 'LMStudio', value: 'lmstudio', key: '10' },
23+
{ label: 'Fastgpt', value: 'fastgpt', key: '11' },
24+
{ label: 'Xinference', value: 'xinference', key: '12' },
2425
],
2526
// 各类别对应的参数字段定义
2627
typeFields: {
@@ -43,6 +44,10 @@ export const configTypeMap = {
4344
{ name: 'apiKey', label: 'API Secret', required: true, span: 8 },
4445
{ name: 'apiUrl', label: 'API URL', required: true, span: 12, suffix: '/chat/completions', defaultUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1" }
4546
],
47+
qwen: [
48+
{ name: 'apiKey', label: 'API Secret', required: true, span: 8 },
49+
{ name: 'apiUrl', label: 'API URL', required: true, span: 12, suffix: '/chat/completions', defaultUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1" }
50+
],
4651
doubao: [
4752
{ name: 'apiKey', label: 'API Secret', required: true, span: 8 },
4853
{ name: 'apiUrl', label: 'API URL', required: true, span: 12, suffix: '/chat/completions', defaultUrl: "https://ark.cn-beijing.volces.com/api/v3" }

0 commit comments

Comments
 (0)