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 && (