style(agents): 模型切换挪到对话框左下角 + 去掉所有 QwenPaw 外链与内部提示(版本 2.6.0 → 2.6.1)

老板三条要求:①模型切换放对话框左下角,不用去配置页;②去掉所有「打开 QwenPaw」
外链;③客户不需要知道的提示(如「提示词归 QwenPaw 管」)全去掉。

- 切换器移入输入区左下角(原静态模型名位置):紧凑 .model-inline 样式、
  可搜索、按供应商分组 + 视觉标;进页面即 loadEngineModels(),展开时兜底刷新
- 配置页模型栏改只读展示 + 一行「在对话框左下角切换」指引
- 删除 qwenpawUrl 计算属性 + 3 处 QwenPaw 外链
- i18n 删 14 个内部/面向 QwenPaw 的键(整键删,不留空串——体检器不允许空文案),
  并改写 sub/subagents/engineBadge/engineDownHint/cfgSlugHint/cfgSuffixHint/
  sharedNote/listFootHint 为客户视角措辞;中英 869/869 对称
- 纯前端改动(后端端点与测试未变,224 passed)

验收:线上实测左下角下拉显示 wjd → 切 deepseek-v4-pro 生效并落盘 → 已恢复 wjd;
配置页截图确认无任何 QwenPaw 字样;重启网关不会回退模型(已实测)。
This commit is contained in:
api-gateway committed 2026-09-30 14:51:04 +08:00
1 parent a77b1fcf92
commit 8fe58a44ed
5 files changed
+99 -94

No files matched your search

+10 -24
View File
@@ -23,7 +23,7 @@ export default {
subchat: 'Vision-ready · multi-provider direct routing',
subimages: 'Params on the left, history on the right · downloads proxied by the gateway',
subvideos: '720P · 4–12s · async polling',
subagents: 'All-round assistants for admins · QwenPaw engine',
subagents: 'Assistants that get work done',
submodels: 'Providers / models / protocol lines',
submetrics: 'Usage & cost · isolated per account',
subkeys: 'Up to 3 per account · stored in plaintext, copyable anytime',
@@ -370,7 +370,7 @@ export default {
},
agents: {
title: 'Agents',
sub: 'Route A: UI in the gateway, engine is QwenPaw',
sub: 'Assistants that get work done — each has its own params and sessions',
subHint: '{n} agents · engine {engine} ({url}) · {scope}',
scopeAdmin: 'Admins only',
scopeOpen: 'Available to {n}',
@@ -383,7 +383,7 @@ export default {
tabConfig: 'Config',
tabRuns: 'Runs',
pickAgent: 'Pick an agent on the left',
engineBadge: 'QwenPaw engine',
engineBadge: 'Agent',
statusPublished: 'Published',
statusDraft: 'Draft',
statusRetired: 'Archived',
@@ -391,7 +391,7 @@ export default {
thisChat: 'This chat',
engineReady: 'Engine ready',
engineDown: 'Engine unreachable',
engineDownHint: 'QwenPaw is not running — start it on the server first',
engineDownHint: 'Engine not ready, please try again later',
retry: 'Retry',
stop: 'Stop',
stopRun: 'Background',
@@ -407,40 +407,26 @@ export default {
cfgBasicSub: 'Name and slug are editable',
cfgName: 'Name',
cfgSlug: 'slug',
cfgSlugHint: 'Used as session kind agent_{slug}; must not clash with model id / alias / QwenPaw profile',
cfgSlugHint: 'Must not clash with an existing model id or alias',
cfgDesc: 'Description',
cfgModel: 'Model',
cfgModelSub: 'From the gateway models',
cfgModelPick: 'Pick a model',
cfgModelRefresh: 'Refresh',
cfgModelVision: 'vision',
cfgModelSwitched: 'Switched to {model} (shared by all agents, takes effect immediately)',
cfgModelHintShared: 'All agents share this one model (the engine stores it per profile). Switching takes effect immediately, no restart. You can also change it in QwenPaw:',
cfgOpenQwenpaw: 'Open QwenPaw',
cfgModelSwitched: 'Switched to {model}',
cfgModelAtChat: 'Switch it at the bottom-left of the chat box (shared by all agents, takes effect immediately)',
cfgExec: 'Execution',
cfgExecSub: 'Affects server safety, read-only for now',
cfgEngine: 'Engine',
cfgWorkspace: 'Workspace',
cfgApproval: 'Approval level',
cfgSandbox: 'Sandbox',
cfgSandboxOff: 'off',
cfgSandboxHint: 'sandbox_enabled=false — tools run directly on the server',
cfgParams: 'Parameters',
cfgTemp: 'temperature',
cfgMaxTokens: 'max_tokens',
cfgTopP: 'top_p',
cfgSuffix: 'Role suffix (system_suffix)',
cfgSuffixHint: 'Appended on top of QwenPaw main prompt (max 2000 chars)',
cfgCapability: 'Capability',
cfgCapabilitySub: '27 built-in tools',
cfgCapabilityHint: 'Decided by QwenPaw profile ai-gateway · fully enabled (files, commands, browser)',
cfgSuffixHint: 'Role add-on for this agent, layered on top of the base instructions (max 2000 chars)',
cfgAccess: 'Access',
cfgAccessSub: 'Gradual rollout',
cfgAccessAdmin: 'Admins only',
cfgAccessHint: 'Phase 2 adds per-user / per-role rollout here',
cfgReadonly: 'read-only',
cfgPromptTitle: 'Prompt',
cfgPromptHint: 'Prompts live in QwenPaw (SOUL.md / AGENTS.md); the gateway does not own them',
save: 'Save',
saved: 'Saved',
test: 'Test run',
@@ -453,7 +439,7 @@ export default {
showRetired: 'Show archived',
limitReached: 'Limit reached ({n})',
limitHint: 'Limit reached ({n}); archive unused agents first',
sharedNote: 'All agents share one engine — models and params are per-agent, prompts and memory are shared',
sharedNote: 'Each agent has its own params and sessions; the model is shared',
riskNote: 'This agent can read/write files and run commands on the server',
runsTotal: 'Calls',
runsTools: 'Tool calls',
@@ -476,7 +462,7 @@ export default {
imgMax: 'Up to {n} images',
imgErr: 'Failed to pick image: {msg}',
imgCount: '{n}/{max}',
listFootHint: 'All agents share one engine — new ones share model and memory; only params and sessions differ.',
listFootHint: 'The model is shared; params, role suffix and sessions are per-agent.',
runDefaultTitle: 'Chat',
cacheHit: 'cache {n}',
meLabel: 'Me',