Skip to content

[BUG] DeepSeek V4 Flash Vision Exp on OpenCode Go incorrectly limited to 4 images per request #47965

Closed

Description

@george-ux

Description

When using deepseek-v4-flash-vision-exp through OpenCode Go, a session that uses several images eventually fails with:

Streaming response failed: [400] At most 4 image(s) may be provided in one prompt. (parameter=image)

This appears specific to deepseek-v4-flash-vision-exp on OpenCode Go.

According to the official DeepSeek Vision API documentation, this model supports up to 600 images per request, not 4.

Steps to reproduce

  1. Use OpenCode Go.
  2. Select deepseek-v4-flash-vision-exp.
  3. Have the agent process more than 4 images/screenshots during a session.
  4. Continue the session.

Actual behavior

The request fails with:

[400] At most 4 image(s) may be provided in one prompt. (parameter=image)

After the images accumulate in conversation history, subsequent requests can also fail because those images continue to be included.

Expected behavior

deepseek-v4-flash-vision-exp should not be restricted to 4 images when the upstream model supports substantially more.

OpenCode Go should either:

  • use the correct image limit for this model, or
  • document why the OpenCode Go deployment intentionally has a lower limit.

Additional context

DeepSeek documentation currently lists:

Max images per request: 600

This may also interact with the session-history issue discussed in #47493, where OpenCode keeps previous images in outgoing requests.

However, the primary issue here appears to be the unexpectedly low 4-image limit specifically for DeepSeek V4 Flash Vision Exp on OpenCode Go.

Image

Activity

  1. goncaloves commented on Sep 8, 2026

    @goncaloves

    I have the same issue using API on VSCode:

    Sorry, your request failed. Please try again.

    Client Request Id: xxxxxxxxxxxx

    Reason: {"param":null,"type":"invalid_request_error","message":"Streaming response failed: [400] At most 4 image(s) may be provided in one prompt. (parameter=image)"}: Error: {"param":null,"type":"invalid_request_error","message":"Streaming response failed: [400] At most 4 image(s) may be provided in one prompt. (parameter=image)"} at yH._provideLanguageModelResponse (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/copilot/dist/extension.js:1592:15149) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async yH.provideLanguageModelResponse (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/copilot/dist/extension.js:1592:16262)

  2. heimoshuiyu commented on Sep 9, 2026

    @heimoshuiyu
    Contributor

    fix, could you try again?

  3. george-ux commented on Sep 10, 2026

    @george-ux
    Author

    Thanks, it seems to work with more than ten images now. I’ll let you know if I run into any issues with a much larger number of images.

  4. goncaloves commented on Sep 10, 2026

    @goncaloves

    Yes, I can confirm that it is stable now. Excellent work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions