Skip to content

[BUG] DeepSeek V4 models report supportsImages: false despite API support #964

Description

@grizmin

Type

Bug

Problem / Value

DeepSeek V4 Pro and V4 Flash models incorrectly report supportsImages: false in their metadata, preventing users from attaching images even though the DeepSeek API natively supports image inputs via its OpenAI-compatible chat completions endpoint.

Context

Users selecting DeepSeek V4 Pro or V4 Flash as their model cannot send images to these models through Zoo Code's UI or CLI, despite DeepSeek's official documentation confirming vision capabilities for both models. This is a metadata misconfiguration - the message format conversion pipeline already handles image blocks correctly (via convertToOpenAiMessages), but the supportsImages flag gates image processing at multiple levels including the ReadFileTool, image validation, and mention resolution.

Reproduction

  1. Select DeepSeek V4 Pro or V4 Flash as the API provider model in Zoo Code settings
  2. Attempt to attach an image to a conversation (via @mention or file reading)
  3. Image processing is skipped with unsupported_model error
  4. Expected: Images are sent to the model for vision-based responses

Context

  • Affected models: deepseek-v4-pro, deepseek-v4-flash
  • Not affected: deepseek-chat, deepseek-reasoner (legacy aliases that genuinely don't support vision)
  • Root cause: packages/types/src/providers/deepseek.ts has supportsImages: false for both V4 models (lines 15 and 29)
  • DeepSeek API docs confirm image support: https://platform.deepseek.com/docs/api

Constraints/Preferences

  • Legacy aliases (deepseek-chat, deepseek-reasoner) should keep supportsImages: false as they're being deprecated (July 24, 2026) and don't support vision

Metadata

Metadata

Assignees

No one assigned

    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