#35236 [Bug]: Gemini Flash 3.6 not working with image_url in tool response
### Check for existing issues
- [x] I have searched the existing issues and checked that my issue is not a duplicate.
### What happened?
When we send an `image_url` as part of a tool response as last message, like so: ``` { 'role': 'tool', 'name': 'SomeName', 'tool_call_id': 'SomeId', 'is_error': False, 'content': [ { 'type': 'text', 'text': 'SomeText' }, { 'type': 'image_url', 'image_url': { 'url': 'SomeUrl' } } ] } ```
We receive the following error with Gemini Flash 3.6 but 3.5 is working fine: ``` "code": 400 "message": "Requests ending with a model turn are not supported." ```
PS: Using Vertex AI
### Steps to Reproduce
1. Call a tool 2. Add its response as multi-chunk `content` with one chunk being an image url 3. See error
### Relevant log output
```shell
```
### What part of LiteLLM is this about?
Proxy
### What LiteLLM version are you on ?
v1.94.0
### Twitter / LinkedIn details
_No response_