Conversation
DoganK01
commented
Dec 12, 2025
- Bedrock API profile fix
Pull Request Review: Bedrock Profile Creation FixI've reviewed PR #495 and identified several critical issues that should be addressed before merging. Critical Issues1. Silent Model Switching (High Priority) Recommendation: Add logging.warning() to notify users when fallback occurs. 2. Hardcoded AWS Credentials (Security Risk) Recommendation: Reuse credentials from the existing self.client instead of creating a parallel credential path. 3. Overly Broad Exception Handling Recommendation: Use specific exceptions like (ClientError, AttributeError, KeyError, TypeError). Bugs
Missing Test CoverageThis PR adds 181 lines of complex error handling but includes NO tests. Need tests for:
Recommendations Before Merge
Positive Aspects
Overall: The PR addresses a real pain point but needs hardening in error handling, security, testing, and user communication before production use. Happy to help implement these suggestions! |