fix(frontend): simplify websearch select labels and reduce width
- "默认(跟随渠道)" → "默认", "Default (follow channel)" → "Default" - Move "follows channel config" info to description text - Reduce select width from w-32 to w-24 in both Edit and Create modals
This commit is contained in:
@@ -2375,7 +2375,7 @@
|
|||||||
{{ t('admin.accounts.anthropic.webSearchEmulationDesc') }}
|
{{ t('admin.accounts.anthropic.webSearchEmulationDesc') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<select v-model="webSearchEmulationMode" class="input w-32 text-sm">
|
<select v-model="webSearchEmulationMode" class="input w-24 text-sm">
|
||||||
<option value="default">{{ t('admin.accounts.anthropic.webSearchDefault') }}</option>
|
<option value="default">{{ t('admin.accounts.anthropic.webSearchDefault') }}</option>
|
||||||
<option value="enabled">{{ t('admin.accounts.anthropic.webSearchEnabled') }}</option>
|
<option value="enabled">{{ t('admin.accounts.anthropic.webSearchEnabled') }}</option>
|
||||||
<option value="disabled">{{ t('admin.accounts.anthropic.webSearchDisabled') }}</option>
|
<option value="disabled">{{ t('admin.accounts.anthropic.webSearchDisabled') }}</option>
|
||||||
|
|||||||
@@ -1161,7 +1161,7 @@
|
|||||||
{{ t('admin.accounts.anthropic.webSearchEmulationDesc') }}
|
{{ t('admin.accounts.anthropic.webSearchEmulationDesc') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<select v-model="webSearchEmulationMode" class="input w-32 text-sm">
|
<select v-model="webSearchEmulationMode" class="input w-24 text-sm">
|
||||||
<option value="default">{{ t('admin.accounts.anthropic.webSearchDefault') }}</option>
|
<option value="default">{{ t('admin.accounts.anthropic.webSearchDefault') }}</option>
|
||||||
<option value="enabled">{{ t('admin.accounts.anthropic.webSearchEnabled') }}</option>
|
<option value="enabled">{{ t('admin.accounts.anthropic.webSearchEnabled') }}</option>
|
||||||
<option value="disabled">{{ t('admin.accounts.anthropic.webSearchDisabled') }}</option>
|
<option value="disabled">{{ t('admin.accounts.anthropic.webSearchDisabled') }}</option>
|
||||||
|
|||||||
@@ -2383,8 +2383,8 @@ export default {
|
|||||||
'Only applies to Anthropic API Key accounts. When enabled, messages/count_tokens are forwarded in passthrough mode with auth replacement only, while billing/concurrency/audit and safety filtering are preserved. Disable to roll back immediately.',
|
'Only applies to Anthropic API Key accounts. When enabled, messages/count_tokens are forwarded in passthrough mode with auth replacement only, while billing/concurrency/audit and safety filtering are preserved. Disable to roll back immediately.',
|
||||||
webSearchEmulation: 'Web Search Emulation',
|
webSearchEmulation: 'Web Search Emulation',
|
||||||
webSearchEmulationDesc:
|
webSearchEmulationDesc:
|
||||||
'Enable web search emulation for this API Key account. When a pure web_search request is detected, the gateway calls a third-party search API and constructs the response locally.',
|
'Enable web search emulation for this API Key account. When a pure web_search request is detected, the gateway calls a third-party search API and constructs the response locally. Default follows channel config.',
|
||||||
webSearchDefault: 'Default (follow channel)',
|
webSearchDefault: 'Default',
|
||||||
webSearchEnabled: 'Enabled',
|
webSearchEnabled: 'Enabled',
|
||||||
webSearchDisabled: 'Disabled',
|
webSearchDisabled: 'Disabled',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2530,8 +2530,8 @@ export default {
|
|||||||
'仅对 Anthropic API Key 生效。开启后,messages/count_tokens 请求将透传上游并仅替换认证,保留计费/并发/审计及必要安全过滤;关闭即可回滚到现有兼容链路。',
|
'仅对 Anthropic API Key 生效。开启后,messages/count_tokens 请求将透传上游并仅替换认证,保留计费/并发/审计及必要安全过滤;关闭即可回滚到现有兼容链路。',
|
||||||
webSearchEmulation: 'Web Search 模拟',
|
webSearchEmulation: 'Web Search 模拟',
|
||||||
webSearchEmulationDesc:
|
webSearchEmulationDesc:
|
||||||
'为该 API Key 账号启用 web search 模拟。客户端发送纯 web_search 请求时,由网关调用第三方搜索 API 并构造响应返回。',
|
'为该 API Key 账号启用 web search 模拟。客户端发送纯 web_search 请求时,由网关调用第三方搜索 API 并构造响应返回。默认跟随渠道配置。',
|
||||||
webSearchDefault: '默认(跟随渠道)',
|
webSearchDefault: '默认',
|
||||||
webSearchEnabled: '开启',
|
webSearchEnabled: '开启',
|
||||||
webSearchDisabled: '关闭',
|
webSearchDisabled: '关闭',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user