You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using CrewAI (which utilizes LiteLLM in the background) with Anthropic LLM via Bedrock and setting the human_input parameter to a CrewAI task to True gives an error right after submitting (i.e., pressing the Enter button) feedback in the terminal:
Relevant part of the code:
/.../
@task
def research_task(self) -> Task:
return Task(
config=self.tasks_config["research_task"],
llm=LLM(
model="bedrock/anthropic.claude-3-5-sonnet-20241022-v2:0",
),
expected_output="Expected output should be a Pydantic model of TaskOutput type with xxxxx, yyyyy and zzzzz properties.",
output_pydantic=TaskOutput,
human_input=True,
)
/.../
Relevant log output
ERROR:root: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)
ERROR:root: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)
ERROR:root: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.
Are you a ML Ops Team?
Yes
What LiteLLM version are you on ?
v1.57.4
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
What happened?
Using CrewAI (which utilizes LiteLLM in the background) with Anthropic LLM via Bedrock and setting the
human_input
parameter to a CrewAI task toTrue
gives an error right after submitting (i.e., pressing the Enter button) feedback in the terminal:Relevant part of the code:
Relevant log output
Are you a ML Ops Team?
Yes
What LiteLLM version are you on ?
v1.57.4
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: