Copilot models: Gemini rejects requests with more than 10 images ; Other models work #211800
Replies: 2 comments
|
Google Cloud documents up to 3,000 images per prompt for Gemini 3.8 Flash, while its API reference separately limits HTTP image URLs to 10 per request. My Copilot request contained inline Base64 images and received a 10-image limit error. Is this limit specific to GitHub Copilot’s integration, an upstream configuration, or a format conversion performed before forwarding the request? |
|
Your follow-up finding is the key clue here. The 10 image limit you hit matches Google's own limit on HTTP image URLs per request, which is 10, even though the model also supports up to 3,000 inline images per prompt. The error came back with the model name in it, so it was enforced by the Gemini endpoint as the request reached it through Copilot, not by a setting in VS Code. That means your inline Base64 images are very likely being turned into URLs before they reach the model, or the request is otherwise going through the URL path on the Google side. Either way, the 10 limit applies to the request as Gemini receives it, which is why your inline images did not get the 3,000 limit. To your three questions:
One thing only Microsoft or the Copilot team can confirm is exactly where the conversion to URLs happens. If that matters to you, add your findings to the VS Code issue so the team can say whether it is the integration or an upstream configuration. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Copilot in GitHub
Body
Hello GitHub Support,
I use my own GitHub account with an active GitHub Copilot Pro+ subscription.
When using Gemini with image-containing conversation history, I receive:
Other Copilot models, including Claude and GPT, do not show this error in my usage. I have not yet verified whether the serialized requests are identical across models.
Could you please clarify:
Related official issue:
microsoft/vscode#289484
Thank you.
All reactions