diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index dd5acd99..8f3fd5de 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1144,7 +1144,7 @@ "鉴权json": "Authentication JSON", "请输入鉴权json": "Please enter authentication JSON", "组织": "Organization", - "组织,可选,不填则为默认组织": "Organization (optional), default if empty", + "组织,不填则为默认组织": "Organization, default if empty", "请输入组织org-xxx": "Please enter organization org-xxx", "默认测试模型": "Default Test Model", "不填则为模型列表第一个": "First model in list if empty", diff --git a/web/src/pages/Channel/EditChannel.js b/web/src/pages/Channel/EditChannel.js index 024c15f6..07d08221 100644 --- a/web/src/pages/Channel/EditChannel.js +++ b/web/src/pages/Channel/EditChannel.js @@ -607,6 +607,77 @@ const EditChannel = (props) => { )} )} + + {inputs.type === 18 && ( + handleInputChange('other', value)} + showClear + /> + )} + + {inputs.type === 41 && ( + handleInputChange('other', value)} + extraText={ + handleInputChange('other', JSON.stringify(REGION_EXAMPLE, null, 2))} + > + {t('填入模板')} + + } + /> + )} + + {inputs.type === 21 && ( + handleInputChange('other', value)} + showClear + /> + )} + + {inputs.type === 39 && ( + handleInputChange('other', value)} + showClear + /> + )} + + {inputs.type === 49 && ( + handleInputChange('other', value)} + showClear + /> + )} + + {inputs.type === 1 && ( + handleInputChange('openai_organization', value)} + /> + )} {/* API Configuration Card */} @@ -862,77 +933,6 @@ const EditChannel = (props) => { onChange={(value) => handleInputChange('groups', value)} /> - {inputs.type === 18 && ( - handleInputChange('other', value)} - showClear - /> - )} - - {inputs.type === 41 && ( - handleInputChange('other', value)} - extraText={ - handleInputChange('other', JSON.stringify(REGION_EXAMPLE, null, 2))} - > - {t('填入模板')} - - } - /> - )} - - {inputs.type === 21 && ( - handleInputChange('other', value)} - showClear - /> - )} - - {inputs.type === 39 && ( - handleInputChange('other', value)} - showClear - /> - )} - - {inputs.type === 49 && ( - handleInputChange('other', value)} - showClear - /> - )} - - {inputs.type === 1 && ( - handleInputChange('openai_organization', value)} - /> - )} -