crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG] Missing boto3 dependency when using AWS Bedrock provider

Open Ray0907 opened this issue 1 year ago • 1 comments

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

Ray0907 avatar Dec 01 '24 08:12 Ray0907

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 31 '24 12:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jan 06 '25 12:01 github-actions[bot]