Out of nowhere...previously working code now gives Multiturn chat is not enabled for models/gemini-1.5-flash-002

This is code that worked every day for months and hasnt been changed now all of a sudden i receive

[2025-01-09T00:26:37.900Z]: Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-002:streamGenerateContent?alt=sse: [400 Bad Request] Multiturn chat is not enabled for models/gemini-1.5-flash-002

did something change on googles end?

nothing not even my input has changed at all

5 Likes

Same here with the gemini-1.5-flash pointing to 002.

Same error with the gemini-1.5-flash can someone help us on that?

use stable version i.e gemini-1.5-flash-001

here’s the link of that documentation

1 Like

thanks working now after upgrading to gemini-2.0-flash-exp

1 Like

But 2.0 is experimental, I am very sceptical about using it for production. If this issue is only for streaming, can’t we use generate_content instead of chat_session.send_message

Hey all, we’re looking into this - thanks for reporting

1 Like

To work around for now, I am using explicitly “'gemini-1.5-flash-001” which is one of stable ones.

Thanks for your patience on this. We just pushed a fix and it should be live soon.