fix(deps): add boto3 dependency for AWS Bedrock support#713
Conversation
Add boto3 as a core dependency to fix ModuleNotFoundError when using AWS Bedrock LLM provider. Update Bedrock documentation with: - AWS SSO authentication (recommended for developers) - Complete working examples for web and local repo scans - Troubleshooting section for common Bedrock issues - Clarification on AWS_REGION_NAME vs AWS_REGION Fixes issue where users encounter "No module named 'boto3'" error when attempting to use bedrock/ model prefixed LLMs. Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Greptile SummaryThis PR adds
Confidence Score: 3/5The boto3 double-declaration makes the optional extra a no-op and silently adds a large transitive dependency for all users; resolve before merging. The core change installs boto3 for all users via the mandatory dependencies list while simultaneously creating a redundant [aws] optional extra — the optional group is dead weight and the install footprint unexpectedly grows for non-Bedrock users. pyproject.toml — the duplicate boto3 entry needs to be reconciled between core and optional dependencies. Important Files Changed
|
|
|
||
| 1. Enable model access in the AWS Bedrock console | ||
| 2. Ensure your IAM role/user has `bedrock:InvokeModel` permission | ||
| 3. `boto3` package (included as dependency in Strix 1.0.5+) |
There was a problem hiding this comment.
The version number in this note doesn't match the current
pyproject.toml version, which is still 1.0.4. This will mislead users checking whether their installed version includes boto3.
| 3. `boto3` package (included as dependency in Strix 1.0.5+) | |
| 3. `boto3` package (included as dependency in Strix 1.0.4+) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/llm-providers/bedrock.mdx
Line: 70
Comment:
The version number in this note doesn't match the current `pyproject.toml` version, which is still `1.0.4`. This will mislead users checking whether their installed version includes boto3.
```suggestion
3. `boto3` package (included as dependency in Strix 1.0.4+)
```
How can I resolve this? If you propose a fix, please make it concise.
Summary
Adds boto3 as an explicit dependency to fix AWS Bedrock provider initialization errors.
Problem
The AWS Bedrock provider imports boto3 but the package doesn't declare it as a dependency, causing ModuleNotFoundError when Bedrock is used.
Solution
Test Plan