@@ -13,14 +13,14 @@ export const configTypeMap = {
1313 { label : 'Ollama' , value : 'ollama' , key : '1' } ,
1414 { label : 'Spark' , value : 'spark' , key : '2' } ,
1515 { label : 'Zhipu' , value : 'zhipu' , key : '3' } ,
16- { 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' } ,
16+ { 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' } ,
2424 ] ,
2525 // 各类别对应的参数字段定义
2626 typeFields : {
@@ -29,46 +29,46 @@ export const configTypeMap = {
2929 { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' } ,
3030 ] ,
3131 ollama : [
32- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/api/chat' , defaultUrl :"http://localhost:11434" }
32+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/api/chat' , defaultUrl : "http://localhost:11434" }
3333 ] ,
3434 spark : [
3535 { name : 'apiKey' , label : 'API Key' , required : true , span : 8 } ,
36- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://spark-api-open.xf-yun.com/v1" }
36+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://spark-api-open.xf-yun.com/v1" }
3737 ] ,
3838 zhipu : [
3939 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
40- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://open.bigmodel.cn/api/paas" }
40+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://open.bigmodel.cn/api/paas" }
4141 ] ,
4242 aliyun : [
4343 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
44- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://dashscope.aliyuncs.com/compatible-mode/v1" }
44+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://dashscope.aliyuncs.com/compatible-mode/v1" }
4545 ] ,
4646 doubao : [
4747 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
48- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://ark.cn-beijing.volces.com/api/v3" }
48+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://ark.cn-beijing.volces.com/api/v3" }
4949 ] ,
5050 deepseek : [
5151 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
52- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://api.deepseek.com" }
52+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://api.deepseek.com" }
5353 ] ,
5454 chatglm : [
5555 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
56- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://open.bigmodel.cn/api/paas/v4/" }
56+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://open.bigmodel.cn/api/paas/v4/" }
5757 ] ,
5858 gemini : [
5959 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
60- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"https://generativelanguage.googleapis.com/v1beta/" }
60+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "https://generativelanguage.googleapis.com/v1beta/" }
6161 ] ,
6262 lmstudio : [
63- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"http://localhost:1234/v1" }
63+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "http://localhost:1234/v1" }
6464 ] ,
6565 fastgpt : [
6666 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
67- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"http://localhost:3000/api/v1" }
67+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "http://localhost:3000/api/v1" }
6868 ] ,
6969 xinference : [
7070 { name : 'apiKey' , label : 'API Secret' , required : true , span : 8 } ,
71- { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl :"http://localhost:9997/v1" }
71+ { name : 'apiUrl' , label : 'API URL' , required : true , span : 12 , suffix : '/chat/completions' , defaultUrl : "http://localhost:9997/v1" }
7272 ]
7373 }
7474 } ,
@@ -77,7 +77,7 @@ export const configTypeMap = {
7777 typeOptions : [
7878 { label : 'Tencent' , value : 'tencent' , key : '0' } ,
7979 { label : 'Aliyun' , value : 'aliyun' , key : '1' } ,
80- { label : 'Xfyun' , value : 'xfyun' , key : '2' } ,
80+ { label : 'Xfyun' , value : 'xfyun' , key : '2' } ,
8181 { label : 'FunASR' , value : 'funasr' , key : '3' }
8282 ] ,
8383 typeFields : {
@@ -95,7 +95,7 @@ export const configTypeMap = {
9595 { name : 'apiKey' , label : 'Api Key' , required : true , span : 12 }
9696 ] ,
9797 funasr : [
98- { name : 'apiUrl' , label : 'Websocket URL' , required : true , span : 12 , defaultUrl :"ws://127.0.0.1:10095" }
98+ { name : 'apiUrl' , label : 'Websocket URL' , required : true , span : 12 , defaultUrl : "ws://127.0.0.1:10095" }
9999 ]
100100 }
101101 } ,
@@ -104,7 +104,8 @@ export const configTypeMap = {
104104 typeOptions : [
105105 { label : 'Aliyun' , value : 'aliyun' , key : '0' } ,
106106 { label : 'Volcengine(doubao)' , value : 'volcengine' , key : '1' } ,
107- { label : 'Xfyun' , value : 'xfyun' , key : '2' }
107+ { label : 'Xfyun' , value : 'xfyun' , key : '2' } ,
108+ { label : 'Minimax' , value : 'minimax' , key : '3' }
108109 ] ,
109110 typeFields : {
110111 aliyun : [
@@ -120,7 +121,11 @@ export const configTypeMap = {
120121 { name : 'appId' , label : 'App Id' , required : true , span : 12 } ,
121122 { name : 'apiSecret' , label : 'Api Secret' , required : true , span : 12 } ,
122123 { name : 'apiKey' , label : 'Api Key' , required : true , span : 12 }
123- ]
124+ ] ,
125+ minimax : [
126+ { name : 'appId' , label : 'Group Id' , required : true , span : 12 } ,
127+ { name : 'apiKey' , label : 'API Key' , required : true , span : 12 }
128+ ] ,
124129 }
125130 }
126131} ;
0 commit comments