feat(frontend): 澄清模型映射适用范围

This commit is contained in:
MMEXA
2026-07-14 00:30:39 +08:00
parent cfc4894dab
commit f10d631a9c
11 changed files with 657 additions and 111 deletions
+29
View File
@@ -295,6 +295,16 @@ export const messages = {
'nav.cacheMonitoring': '缓存监控',
'nav.moduleManagement': '模块管理',
'nav.systemSettings': '系统设置',
'providers.modelMapping.scope.allRequests': '所有请求',
'providers.modelMapping.scope.sessionCompactionOnly': '仅会话压缩',
'providers.modelMapping.scope.customOperations': '仅匹配:{operations}',
'providers.modelMapping.scope.allRequestsDescription': '普通请求和会话压缩都可使用此映射。',
'providers.modelMapping.scope.sessionCompactionDescription': '只在会话压缩时使用此映射,包括 Responses 输入中的压缩触发和 Responses Compact 端点。',
'providers.modelMapping.scope.customOperationsDescription': '只匹配请求操作:{operations}。',
'providers.modelMapping.scope.allEndpoints': '全部端点',
'providers.modelMapping.scope.endpointCount': '{count} 个端点',
'providers.modelMapping.scope.endpointHelp': '留空时不限制端点;选择后仅匹配指定端点。',
'providers.modelMapping.scope.matchHelp': '端点范围和请求范围必须同时匹配。',
'breadcrumb.personalSettings': '个人设置',
'breadcrumb.routingCreate': '新建调度策略',
'breadcrumb.routingConfig': '调度策略配置',
@@ -595,6 +605,16 @@ export const messages = {
'nav.cacheMonitoring': 'Cache monitoring',
'nav.moduleManagement': 'Modules',
'nav.systemSettings': 'System settings',
'providers.modelMapping.scope.allRequests': 'All requests',
'providers.modelMapping.scope.sessionCompactionOnly': 'Session compaction only',
'providers.modelMapping.scope.customOperations': 'Match only: {operations}',
'providers.modelMapping.scope.allRequestsDescription': 'Regular requests and session compaction can both use this mapping.',
'providers.modelMapping.scope.sessionCompactionDescription': 'Use this mapping only for session compaction, including compaction triggers in Responses input and the Responses Compact endpoint.',
'providers.modelMapping.scope.customOperationsDescription': 'Match only these request operations: {operations}.',
'providers.modelMapping.scope.allEndpoints': 'All endpoints',
'providers.modelMapping.scope.endpointCount': '{count} endpoints',
'providers.modelMapping.scope.endpointHelp': 'Leave empty for no endpoint restriction. Selections match only those endpoints.',
'providers.modelMapping.scope.matchHelp': 'Both the endpoint scope and request scope must match.',
'breadcrumb.personalSettings': 'Profile settings',
'breadcrumb.routingCreate': 'Create routing profile',
'breadcrumb.routingConfig': 'Routing profile',
@@ -673,6 +693,15 @@ const legacyExactEnglishMessages: Record<string, string> = {
'全部分组': 'All groups',
'全部归属': 'All ownership',
'全部方式': 'All methods',
'适用范围': 'Applies to',
'适用端点': 'Applicable endpoints',
'适用请求': 'Applicable requests',
'全部端点': 'All endpoints',
'所有请求': 'All requests',
'仅会话压缩': 'Session compaction only',
'会话压缩': 'Session compaction',
'保存映射': 'Save mapping',
'添加映射': 'Add mapping',
'未设置': 'Not set',
'已设置': 'Configured',
'默认': 'Default',