Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Bedrock feedback loop is throwing the error #1856

Open
Yeswanth-gif opened this issue Jan 6, 2025 · 0 comments
Open

[BUG] Bedrock feedback loop is throwing the error #1856

Yeswanth-gif opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Yeswanth-gif
Copy link

Description

With bedrock llms the feedback loop seems to be impossible as it is happening for each and every task and even when i am training the crew as this will not giving how the bedrock llms are expecting the input that it is giving role as message. I believe this is given based on the requirement for the openai but i guess we need to customize this according to the llm provider. Please look after this. Thanks !

Steps to Reproduce

  1. Replace the llm for the agent to one of the bedrock llm
  2. give human_input=True for one of the Task
  3. kickoff the crew

Expected behavior

Expected to take the feedback.

Screenshots/Code snippets

2025-01-06 10:52:36,967 - 8561692480 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message Error during LLM call to classify human feedback: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message. Retrying... (1/3) 2025-01-06 10:52:36,977 - 8561692480 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message Error during LLM call to classify human feedback: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message. Retrying... (2/3) 2025-01-06 10:52:36,986 - 8561692480 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message Error during LLM call to classify human feedback: litellm.BadRequestError: Invalid Message bedrock requires at least one non-system message. Retrying... (3/3) Error processing feedback after multiple attempts.

Operating System

macOS Sonoma

Python Version

3.12

crewAI Version

0.95.0

crewAI Tools Version

0.25.8

Virtual Environment

Venv

Evidence

None

Possible Solution

None

Additional context

None

@Yeswanth-gif Yeswanth-gif added the bug Something isn't working label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant