Skip to content

getting error while executing prompt #51

@Sunitdg777

Description

@Sunitdg777

Tell me what you want to do (type "exit" to quit): give me tasks to build simple e-commerce platform
Your request: give me tasks to build simple e-commerce platform
@System Triage Agent will help you, be patient...

Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.

Provider List: https://docs.litellm.ai/docs/providers

Traceback (most recent call last):
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py", line 1537, in completion
response = client.post(url=url, headers=headers, json=data) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/llms/custom_httpx/http_handler.py", line 471, in post
raise e
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/llms/custom_httpx/http_handler.py", line 451, in post
response.raise_for_status()
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/httpx/_models.py", line 763, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=AIzaSyD5S3GGyQbA-fqQoGfk3IpSLkAUqGLMTRE'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/main.py", line 2200, in completion
response = vertex_chat_completion.completion( # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py", line 1541, in completion
raise VertexAIError(
litellm.llms.vertex_ai.common_utils.VertexAIError: {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[7].parameters.properties[2].value': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "tools[0].function_declarations[7].parameters.properties[2].value",
"description": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[7].parameters.properties[2].value': Cannot find field."
}
]
}
]
}
}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/bin/auto", line 8, in
sys.exit(cli())
^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/click/core.py", line 1161, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/click/core.py", line 1082, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/AutoAgent/autoagent/cli.py", line 224, in main
user_mode(model, context_variables, False)
File "/home/sunit/Desktop/MY_POCS/auto_agents/AutoAgent/autoagent/cli.py", line 290, in user_mode
response = client.run(agent, messages, context_variables, debug=debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/AutoAgent/autoagent/core.py", line 428, in run
completion = self.get_chat_completion(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/AutoAgent/autoagent/core.py", line 173, in get_chat_completion
completion_response = completion(**create_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/utils.py", line 980, in wrapper
raise e
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/utils.py", line 861, in wrapper
result = original_function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/main.py", line 2951, in completion
raise exception_type(
^^^^^^^^^^^^^^^
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 2141, in exception_type
raise e
File "/home/sunit/Desktop/MY_POCS/auto_agents/myenv/lib/python3.12/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 1146, in exception_type
raise BadRequestError(
litellm.exceptions.BadRequestError: litellm.BadRequestError: VertexAIException BadRequestError - {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[7].parameters.properties[2].value': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "tools[0].function_declarations[7].parameters.properties[2].value",
"description": "Invalid JSON payload received. Unknown name "additionalProperties" at 'tools[0].function_declarations[7].parameters.properties[2].value': Cannot find field."
}
]
}
]
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions