From 1bac3922fb24313870eaebff322e7b5862130874 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 16 Feb 2026 06:21:52 +0000 Subject: [PATCH] fix: address code review findings - Fix AWS icon: use SVG with embedded instead of raw tag - Hide duplicate ApiKeySection for Bedrock (auth via template fields only) - Guard settingsConfig cleanup against unresolved template placeholders Co-Authored-By: Claude Opus 4.6 --- src/components/providers/forms/ClaudeFormFields.tsx | 4 ++-- src/components/providers/forms/ProviderForm.tsx | 3 ++- src/icons/extracted/index.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/providers/forms/ClaudeFormFields.tsx b/src/components/providers/forms/ClaudeFormFields.tsx index dfff5c2a2..2b23a5c07 100644 --- a/src/components/providers/forms/ClaudeFormFields.tsx +++ b/src/components/providers/forms/ClaudeFormFields.tsx @@ -121,8 +121,8 @@ export function ClaudeFormFields({ return ( <> - {/* API Key 输入框 */} - {shouldShowApiKey && ( + {/* API Key 输入框 - Bedrock 模式下隐藏(认证通过模板字段处理) */} + {shouldShowApiKey && !isBedrock && ( = { aigocode: `AiGoCode`, alibaba: `Alibaba`, anthropic: `Anthropic`, - aws: `AWS`, + aws: `AWS`, azure: `Azure`, baidu: `Baidu`, bytedance: `ByteDance`,