From 7fee0d8fa606ee015a7671082dcae6d1a1fe88d0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Feb 2026 05:42:58 +0000 Subject: [PATCH] feat: support isSecret template fields and hide base URL for Bedrock Co-Authored-By: Claude Opus 4.6 --- .../providers/forms/ClaudeFormFields.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/providers/forms/ClaudeFormFields.tsx b/src/components/providers/forms/ClaudeFormFields.tsx index 9dd750576..dfff5c2a2 100644 --- a/src/components/providers/forms/ClaudeFormFields.tsx +++ b/src/components/providers/forms/ClaudeFormFields.tsx @@ -76,6 +76,9 @@ interface ClaudeFormFieldsProps { // Auth Key Field (ANTHROPIC_AUTH_TOKEN vs ANTHROPIC_API_KEY) apiKeyField: ClaudeApiKeyField; onApiKeyFieldChange: (field: ClaudeApiKeyField) => void; + + // Bedrock 模式标识 + isBedrock?: boolean; } export function ClaudeFormFields({ @@ -112,6 +115,7 @@ export function ClaudeFormFields({ onApiFormatChange, apiKeyField, onApiKeyFieldChange, + isBedrock, }: ClaudeFormFieldsProps) { const { t } = useTranslation(); @@ -147,8 +151,8 @@ export function ClaudeFormFields({ )} - {/* Base URL 输入框 */} - {shouldShowSpeedTest && ( + {/* Base URL 输入框 - Bedrock 模式下隐藏 */} + {shouldShowSpeedTest && !isBedrock && ( )} - {/* 端点测速弹窗 */} - {shouldShowSpeedTest && isEndpointModalOpen && ( + {/* 端点测速弹窗 - Bedrock 模式下隐藏 */} + {shouldShowSpeedTest && !isBedrock && isEndpointModalOpen && (