MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / type2secretPrompt

Function type2secretPrompt

web/src/pages/Channel/EditChannel.js:57–77  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

55};
56
57function type2secretPrompt(type) {
58 // inputs.type === 15 ? '按照如下格式输入:APIKey|SecretKey' : (inputs.type === 18 ? '按照如下格式输入:APPID|APISecret|APIKey' : '请输入渠道对应的鉴权密钥')
59 switch (type) {
60 case 15:
61 return '按照如下格式输入:APIKey|SecretKey';
62 case 18:
63 return '按照如下格式输入:APPID|APISecret|APIKey';
64 case 22:
65 return '按照如下格式输入:APIKey-AppId,例如:fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041';
66 case 23:
67 return '按照如下格式输入:AppId|SecretId|SecretKey';
68 case 33:
69 return '按照如下格式输入:Ak|Sk|Region';
70 case 50:
71 return '按照如下格式输入: AccessKey|SecretKey';
72 case 51:
73 return '按照如下格式输入: Access Key ID|Secret Access Key';
74 default:
75 return '请输入渠道对应的鉴权密钥';
76 }
77}
78
79const EditChannel = (props) => {
80 const { t } = useTranslation();

Callers 1

EditChannel.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected