litellm icon indicating copy to clipboard operation
litellm copied to clipboard

gemini api - cannot support enum in function call

Open NurzihanReya opened this issue 1 year ago • 1 comments

Error message: Failed to convert text into JSON, error: litellm.BadRequestError: VertexAIException BadRequestError - { "error": { "code": 400, "message": "* GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[source_links].items.format: only 'enum' is supported for STRING type\n* GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[faculty].items.properties[faculty_website].format: only 'enum' is supported for STRING type\n* GenerateContentRequest.tools[0].function_declarations[0].parameters.properties[faculty].items.properties[email].format: only 'enum' is supported for STRING type\n", "status": "INVALID_ARGUMENT" } }

NurzihanReya avatar Dec 01 '24 05:12 NurzihanReya

@NurzihanReya Can you share the liteLLM debug logs?

Got by running litellm.set_verbose=True

It would help to know the raw request being made to liteLLM

krrishdholakia avatar Dec 07 '24 17:12 krrishdholakia

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Mar 08 '25 00:03 github-actions[bot]