Problem (one or two sentences)
A user is trying to use Gemini 3.7 using the vertex provider, and gets the following message:
it does however work with just the Gemini Provider and API Key, so it's only a Vertex issue.
Date/time: 2026-08-19T08:16:38.964Z
Extension version: 3.79.100388
Provider: vertex
Model: gemini-3.7-flash
Gemini generate context stream error: {"error":
{"message":"{\n "error": {\n "code": 400,\n "message": "Requests ending with a model turn are not supported.", \n "status": "INVALID_ARGUMENT"\n}\n} \n","code":400,"status":"Bad Request"}}
Context (who is affected and when)
While using Gemini 3.7 on Vertex provider
Reproduction steps
Selecting Gemini 3.7 in Vertex provider and trying to use Zoo Code
Expected result
code generation starts
Actual result
error message received instead of code
Variations tried (optional)
No response
App Version
3.79.100388
API Provider (optional)
Google Vertex AI
Model Used (optional)
Gemini 3.7-flash
Zoo Code Task Links (optional)
No response
Relevant logs or errors (optional)
Provider: vertex
Model: gemini-3.7-flash
Gemini generate context stream error: {"error":
{"message":"{\n \"error\": {\n \"code\": 400,\n \"message\": \"Requests ending with a model turn are not supported.\", \n \"status\": \"INVALID_ARGUMENT\"\n}\n} \n","code":400,"status":"Bad Request"}}
Problem (one or two sentences)
A user is trying to use Gemini 3.7 using the vertex provider, and gets the following message:
it does however work with just the Gemini Provider and API Key, so it's only a Vertex issue.
Date/time: 2026-08-19T08:16:38.964Z
Extension version: 3.79.100388
Provider: vertex
Model: gemini-3.7-flash
Gemini generate context stream error: {"error":
{"message":"{\n "error": {\n "code": 400,\n "message": "Requests ending with a model turn are not supported.", \n "status": "INVALID_ARGUMENT"\n}\n} \n","code":400,"status":"Bad Request"}}
Context (who is affected and when)
While using Gemini 3.7 on Vertex provider
Reproduction steps
Selecting Gemini 3.7 in Vertex provider and trying to use Zoo Code
Expected result
code generation starts
Actual result
error message received instead of code
Variations tried (optional)
No response
App Version
3.79.100388
API Provider (optional)
Google Vertex AI
Model Used (optional)
Gemini 3.7-flash
Zoo Code Task Links (optional)
No response
Relevant logs or errors (optional)
Provider: vertex Model: gemini-3.7-flash Gemini generate context stream error: {"error": {"message":"{\n \"error\": {\n \"code\": 400,\n \"message\": \"Requests ending with a model turn are not supported.\", \n \"status\": \"INVALID_ARGUMENT\"\n}\n} \n","code":400,"status":"Bad Request"}}