crewAI
crewAI copied to clipboard
[BUG] Missing boto3 dependency when using AWS Bedrock provider
Description
When using AWS Bedrock as the LLM provider with CrewAI and LiteLLM, the service fails due to a missing boto3 dependency in the LiteLLM Bedrock handler path.
Steps to Reproduce
crewai run
Expected behavior
- boto3 should be included as a required dependency when using the AWS Bedrock provider
- The dependency should be properly handled within the LiteLLM Bedrock handler
Screenshots/Code snippets
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
ERROR:root:LiteLLM call failed: litellm.APIConnectionError: Missing boto3 to call bedrock. Run 'pip install boto3'. Traceback (most recent call last): File "~/my_agent/.venv/lib/python3.12/site-packages/litellm/llms/bedrock/chat/converse_handler.py", line 224, in completion import boto3 ModuleNotFoundError: No module named 'boto3'
Operating System
macOS Sonoma
Python Version
3.12
crewAI Version
0.83.0
crewAI Tools Version
pip install crewai-tools
Virtual Environment
Venv
Evidence
None
Possible Solution
None
Additional context
None