@@ -33,69 +33,56 @@ export const configTypeMap: Record<string, ConfigTypeInfo> = {
3333 help : 'OpenAI官方地址或代理地址'
3434 }
3535 ] ,
36- 'Azure-OpenAI' : [
36+ // 阿里云系列
37+ 'Tongyi-Qianwen' : [
3738 {
3839 name : 'apiKey' ,
3940 label : 'API Key' ,
4041 required : true ,
4142 inputType : 'password' ,
4243 placeholder : 'your-api-key' ,
4344 span : 12 ,
44- help : '在 Azure 门户中申请 '
45+ help : '在 https://bailian.console.aliyun.com/?apiKey=1#/api-key 申请 '
4546 } ,
4647 {
4748 name : 'apiUrl' ,
4849 label : 'API URL' ,
4950 required : true ,
5051 inputType : 'text' ,
51- placeholder : 'https://your-resource-name.openai.azure. com' ,
52+ placeholder : 'https://dashscope.aliyuncs. com/compatible-mode/v1 ' ,
5253 span : 12 ,
5354 suffix : '/chat/completions' ,
54- help : 'Azure OpenAI 服务地址 '
55+ help : '阿里云通义千问 API 接口地址 '
5556 }
5657 ] ,
57- // xAI
58- 'xAI ' : [
58+ // 讯飞星火
59+ 'XunFei Spark ' : [
5960 {
60- name : 'apiKey' ,
61- label : 'API Key' ,
62- required : true ,
63- inputType : 'password' ,
64- placeholder : 'your-api-key' ,
65- span : 12 ,
66- help : '在 https://x.ai/api-keys 申请'
67- } ,
68- {
69- name : 'apiUrl' ,
70- label : 'API URL' ,
61+ name : 'appId' ,
62+ label : 'App Id' ,
7163 required : true ,
7264 inputType : 'text' ,
73- placeholder : 'https://api.x.ai/v1 ' ,
65+ placeholder : 'your-app-id ' ,
7466 span : 12 ,
75- suffix : '/chat/completions' ,
76- help : 'xAI API 接口地址'
77- }
78- ] ,
79- // 阿里云系列
80- 'Tongyi-Qianwen' : [
67+ help : '在 https://console.xfyun.cn/ 申请讯飞开放平台 AppID'
68+ } ,
8169 {
8270 name : 'apiKey' ,
8371 label : 'API Key' ,
8472 required : true ,
8573 inputType : 'password' ,
8674 placeholder : 'your-api-key' ,
8775 span : 12 ,
88- help : '在 https://bailian.console.aliyun.com/?apiKey=1#/api-key 申请 '
76+ help : '讯飞开放平台 API Key '
8977 } ,
9078 {
91- name : 'apiUrl ' ,
92- label : 'API URL ' ,
79+ name : 'apiSecret ' ,
80+ label : 'API Secret ' ,
9381 required : true ,
94- inputType : 'text ' ,
95- placeholder : 'https://dashscope.aliyuncs.com/compatible-mode/v1 ' ,
82+ inputType : 'password ' ,
83+ placeholder : 'your-api-secret ' ,
9684 span : 12 ,
97- suffix : '/chat/completions' ,
98- help : '阿里云通义千问 API 接口地址'
85+ help : '讯飞开放平台 API Secret'
9986 }
10087 ] ,
10188 // 智谱AI
0 commit comments