crewAI-tools icon indicating copy to clipboard operation
crewAI-tools copied to clipboard

Gemini throwing bad request error when passing human input

Open omarnahdi opened this issue 1 year ago • 0 comments

When giving user input it is throwing the error, I have also set the human_input=True

=====
## Please provide feedback on the Final Result and the Agent's actions. Respond with 'looks good' or a similar phrase when you're satisfied.
=====

2025-01-19 22:14:51,453 - 4920 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}



LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

 Error during LLM call to classify human feedback: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}
. Retrying... (1/3)
2025-01-19 22:14:53,492 - 4920 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}



LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

 Error during LLM call to classify human feedback: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}
. Retrying... (2/3)
2025-01-19 22:14:55,492 - 4920 - llm.py-llm:187 - ERROR: LiteLLM call failed: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}



LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

 Error during LLM call to classify human feedback: litellm.BadRequestError: VertexAIException BadRequestError - {
  "error": {
    "code": 400,
    "message": "* GenerateContentRequest.contents: contents is not specified\n",
    "status": "INVALID_ARGUMENT"
  }
}
. Retrying... (3/3)
 Error processing feedback after multiple attempts.

omarnahdi avatar Jan 19 '25 16:01 omarnahdi