zed-industries/zed · error

This model does not support images yet

Error message

This model does not support images yet

What it means

Emitted by confirm_mention_for_file when the mentioned path is a raster image but the active language model lacks image input support (supports_images is false). The mention itself is valid; it is refused because attaching it would produce a message the model cannot process. The offending condition is the selected model's missing image capability.

Solutions

  1. Switch to a model that supports image inputs before mentioning the image
  2. Mention a text file instead, or transcribe the image's content manually
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/agent_ui/src/mention_set.rs:405 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/6dc3437ab18d2ad5. Report an issue: GitHub.

Appendix: source

Thrown at crates/agent_ui/src/mention_set.rs:405

        supports_images: bool,
        cx: &mut Context<Self>,
    ) -> Task<Result<Mention>> {
        let Some(project) = self.project.upgrade() else {
            return Task::ready(Err(anyhow!("project not found")));
        };

        let Some(project_path) = project
            .read(cx)
            .project_path_for_absolute_path(&abs_path, cx)
        else {
            return Task::ready(Err(anyhow!(
                "project path not found for file mention {abs_path:?}"
            )));
        };

        if is_raster_image_path(&abs_path) {
            if !supports_images {
                return Task::ready(Err(anyhow!("This model does not support images yet")));
            }
            let task = project.update(cx, |project, cx| project.open_image(project_path, cx));
            return cx.spawn(async move |_, cx| {
                let image = task.await?;
                let image = image.update(cx, |image, _| image.image.clone());
                let image = cx
                    .update(|cx| LanguageModelImage::from_image(image, cx))
                    .await;
                if let Some(image) = image {
                    Ok(Mention::Image(MentionImage {
                        data: image.source,
                        format: LanguageModelImage::FORMAT,
                    }))
                } else {
                    Err(anyhow!("Failed to convert image"))
                }
            });
        }

View on GitHub (pinned to f4178619ac)