Gemini 2.5 Pro with empty response.text

Same issue here - **gemini-2.5-flash streaming stops prematurely with finish_reason=STOP in development environment, but works fine in production with identical code**. Input/output well within limits, no safety issues. Development environment has more complex context which seems to trigger this bug. Tried prompt completion instructions and prefix rotation with limited success. Any other workarounds?