Gemini function calling not working (gemini1.5-flash)

When using function-calling in Gemini1.5-flash I get an error

status = StatusCode.RESOURCE_EXHAUSTED
        details = “Resource has been exhausted (e.g. check quota).”
        debug_error_string = “UNKNOWN:Error received from peer ipv4:173.194.221.95:443 {grpc_message: ‘Resource has been exhausted (e.g. check quota).’, grpc_status:8, created_time: ‘2024-12-25T17:16:28.065332993+05:00’}””

At the same time, models without function calling work in the usual way

1 Like

I also checked my query without function calling, it worked without 429

Hi @shelbych , Welcome to the forum.

Is the same case with gemini-1.5-pro as well??

Yeah, it’s on the 1.5-pro.

Are you using google_search_tool??, Because to use the grounding tool, your API needs to be paid one.

Could you please share sample code so that I can reproduce the issue?

Same issue. Google Gemini’s rate limits seem random, kicking in after 5-7 requests and requiring a up to 10 min wait. Daily quota is just under 2%. I’m using OpenAI compatible API.

1 Like

How practical is that?

I don’t use the search tool, just a simple call of my own functions using the example of what is in the documentation (docs-string example)