feat: 同步权限管理、企业成员排行与消费计费明细
- 接入平台与企业角色权限,按权限展示菜单、页面及操作。 - 企业成员排行按需加载,翻页沿用同一榜单快照,保留连续名次与前三名样式。 - 更新消费日志的费用明细、超管指标和官方价格汇率设置,补齐翻译与回归测试。
This commit is contained in:
@@ -155,6 +155,7 @@ const originInputs = {
|
||||
thinking_to_content: false,
|
||||
proxy: '',
|
||||
pass_through_body_enabled: false,
|
||||
pass_through_model_mapping_enabled: false,
|
||||
chat_image_to_images_enabled: false,
|
||||
system_prompt: '',
|
||||
system_prompt_override: false,
|
||||
@@ -404,6 +405,7 @@ const EditChannelModal = (props) => {
|
||||
thinking_to_content: false,
|
||||
proxy: '',
|
||||
pass_through_body_enabled: false,
|
||||
pass_through_model_mapping_enabled: false,
|
||||
chat_image_to_images_enabled: false,
|
||||
system_prompt: '',
|
||||
system_prompt_override: false,
|
||||
@@ -602,6 +604,8 @@ const EditChannelModal = (props) => {
|
||||
data.proxy = parsedSettings.proxy || '';
|
||||
data.pass_through_body_enabled =
|
||||
parsedSettings.pass_through_body_enabled || false;
|
||||
data.pass_through_model_mapping_enabled =
|
||||
parsedSettings.pass_through_model_mapping_enabled === true;
|
||||
data.chat_image_to_images_enabled =
|
||||
parsedSettings.chat_image_to_images_enabled || false;
|
||||
data.system_prompt = parsedSettings.system_prompt || '';
|
||||
@@ -643,6 +647,7 @@ const EditChannelModal = (props) => {
|
||||
data.thinking_to_content = false;
|
||||
data.proxy = '';
|
||||
data.pass_through_body_enabled = false;
|
||||
data.pass_through_model_mapping_enabled = false;
|
||||
data.chat_image_to_images_enabled = false;
|
||||
data.system_prompt = '';
|
||||
data.system_prompt_override = false;
|
||||
@@ -665,6 +670,7 @@ const EditChannelModal = (props) => {
|
||||
data.thinking_to_content = false;
|
||||
data.proxy = '';
|
||||
data.pass_through_body_enabled = false;
|
||||
data.pass_through_model_mapping_enabled = false;
|
||||
data.chat_image_to_images_enabled = false;
|
||||
data.system_prompt = '';
|
||||
data.system_prompt_override = false;
|
||||
@@ -778,6 +784,8 @@ const EditChannelModal = (props) => {
|
||||
thinking_to_content: data.thinking_to_content,
|
||||
proxy: data.proxy,
|
||||
pass_through_body_enabled: data.pass_through_body_enabled,
|
||||
pass_through_model_mapping_enabled:
|
||||
data.pass_through_model_mapping_enabled,
|
||||
chat_image_to_images_enabled:
|
||||
data.chat_image_to_images_enabled || false,
|
||||
system_prompt: data.system_prompt,
|
||||
@@ -1065,6 +1073,7 @@ const EditChannelModal = (props) => {
|
||||
thinking_to_content: false,
|
||||
proxy: '',
|
||||
pass_through_body_enabled: false,
|
||||
pass_through_model_mapping_enabled: false,
|
||||
chat_image_to_images_enabled: false,
|
||||
system_prompt: '',
|
||||
system_prompt_override: false,
|
||||
@@ -1394,6 +1403,8 @@ const EditChannelModal = (props) => {
|
||||
thinking_to_content: localInputs.thinking_to_content || false,
|
||||
proxy: localInputs.proxy || '',
|
||||
pass_through_body_enabled: localInputs.pass_through_body_enabled || false,
|
||||
pass_through_model_mapping_enabled:
|
||||
localInputs.pass_through_model_mapping_enabled === true,
|
||||
chat_image_to_images_enabled:
|
||||
localInputs.chat_image_to_images_enabled || false,
|
||||
system_prompt: localInputs.system_prompt || '',
|
||||
@@ -1499,6 +1510,7 @@ const EditChannelModal = (props) => {
|
||||
delete localInputs.thinking_to_content;
|
||||
delete localInputs.proxy;
|
||||
delete localInputs.pass_through_body_enabled;
|
||||
delete localInputs.pass_through_model_mapping_enabled;
|
||||
delete localInputs.chat_image_to_images_enabled;
|
||||
delete localInputs.client_only;
|
||||
delete localInputs.os_restriction;
|
||||
@@ -3514,6 +3526,22 @@ const EditChannelModal = (props) => {
|
||||
extraText={t('启用请求体透传功能')}
|
||||
/>
|
||||
|
||||
<Form.Switch
|
||||
field='pass_through_model_mapping_enabled'
|
||||
label={t('透传时应用模型映射')}
|
||||
checkedText={t('开')}
|
||||
uncheckedText={t('关')}
|
||||
onChange={(value) =>
|
||||
handleChannelSettingsChange(
|
||||
'pass_through_model_mapping_enabled',
|
||||
value,
|
||||
)
|
||||
}
|
||||
extraText={t(
|
||||
'请求体透传时,使用本渠道模型重定向后的模型名发送给上游,其余字段按原请求转发。',
|
||||
)}
|
||||
/>
|
||||
|
||||
{(inputs.type === 1 || inputs.type === 3) && (
|
||||
<Form.Switch
|
||||
field='chat_image_to_images_enabled'
|
||||
|
||||
Reference in New Issue
Block a user