Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

ERROR: Cannot read "X" (this model does not support image input). Inform the user.

Đã đóng Phù hợp với người mới
#54,887 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
ai, backend

Hướng nghiên cứu

Bắt đầu bằng cách đọc ~/.config/opencode/plugins/llama-discover.ts và cấu trúc phản hồi /models của Llama.cpp được mô tả trong issue. Theo dõi cách các khả năng của mô hình được đăng ký và so sánh các mục data[] với architecture.input_modalities. Tái hiện bằng một mô hình có khả năng xử lý hình ảnh được Llama.cpp phục vụ; hoàn thành khi đầu vào hình ảnh được nhận diện thay vì kích hoạt lỗi chỉ hỗ trợ văn bản.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

triaging
Description

The model is not accepting image input, despite being vision capable.

Root cause: ~/.config/opencode/plugins/llama-discover.ts iterates llama.cpp's /models data[] array but checked entry.capabilities for "multimodal". That field only exists in the parallel models[] array — data[] entries never have it.
So the check is always false, and the model is always registered text-only. The correct field on data[] entries is architecture.input_modalities, which reports ["text","image","video"] on my server.

Plugins

No response

OpenCode version

v2.0.27

Steps to reproduce

1: Load up a model like unsloth/Qwen3.8-27B-GGUF that has image support.
2: Serve it with Llama.cpp.
3: Paste an image into the prompt
4: Watch the model parrot: "ERROR: Cannot read "X" (this model does not support image input). Inform the user." default from model-request.ts because it only reads the models registered capabilities.

Screenshot and/or share link

No response

Operating System

CachyOS x86_64.

Terminal

Alacritty, Gnome, any old fish terminal.

Ngôn ngữ chính
TypeScript
Star
213k
Fork
28.4k
Merge trung bình
8 giờ 58 phút
Pull request đã merge (30 ngày)
251

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của anomalyco/opencode

Tất cả issue của anomalyco/opencode

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.