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

[bug] vision describe: default base URL is the Coding Plan endpoint → HTTP 404 for all VL/OCR models

Đang mở Phù hợp với người mới
#241 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
78/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
backend-api-design, cli

Hướng nghiên cứu

Tìm lệnh vision describe và so sánh cách lệnh này phân giải URL cơ sở với các lệnh API-key khác. Theo dõi việc chọn endpoint cho --base-url, DASHSCOPE_BASE_URL và base_url của profile được chọn; chạy các bài kiểm tra của lệnh vision. Hoàn tất khi endpoint đã cấu hình được sử dụng hoặc endpoint mặc định trỏ đến một endpoint công khai cung cấp các mô hình VL/OCR.

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

Mô tả

Environment

  • CLI: bl 2.1.0
  • Skill: 2.1.0
  • Node: v22.23.3
  • OS: Linux 5.15.0-198-generic x86_64 (Ubuntu)
  • Region: cn (domestic)

Reproduce

bl vision describe without an explicit --base-url posts to
https://coding.dashscope.aliyuncs.com/compatible-mode/v1/chat/completions,
which does not serve VL/OCR models, so the request always 404s.

# fails
bl vision describe --image ./test.png --model qwen3.5-ocr --prompt "Output the text" --verbose

# identical command + explicit public endpoint succeeds
bl vision describe --image ./test.png --model qwen3.5-ocr --prompt "Output the text" \
  --base-url https://dashscope.aliyuncs.com

Expected

bl vision describe should resolve its endpoint the same way other API-key
commands do (--base-url → DASHSCOPE_BASE_URL → selected profile base_url),
or fall back to a public DashScope endpoint that actually serves VL models.

Actual

Every call without --base-url fails with HTTP 404, for every model tried
(qwen3.5-ocr, qwen-vl-ocr, qwen3-vl-plus). The same command with
--base-url https://dashscope.aliyuncs.com exits 0 and returns correct OCR text.

The configured profile's base_url is a private workspace endpoint
([REDACTED_URL]), and vision does not use that either — so neither the
profile setting nor a working default is applied.

Full output

> POST https://coding.dashscope.aliyuncs.com/compatible-mode/v1/chat/completions
> x-dashscope-source-config: {"channel":"bailian-cli","tags":{"t1":"public","t2":"bl","t3":"2.1.0"}}
< 404 Not Found

Error:       HTTP 404
Status:      HTTP 404
Exit code:   1

JSON error

{
  "error": {
    "code": 1,
    "message": "HTTP 404",
    "http_status": 404
  }
}

Already tried

  • bl update to 2.1.0; skill version aligned with the CLI
  • bl auth status healthy (API key + console gateway configured)
  • Reproduces on every call (100%), on several models, and also on a plain
    320×90 test image with no document content
  • --base-url https://dashscope.aliyuncs.com works every time

Notes

  • Frequency: always
  • Invoked via: terminal and agent (DeepSeek Harness)
  • Impact: the error carries no hint about the endpoint, so it reads like a model
    or auth problem. Users cannot self-diagnose without --verbose, and the
    documented bl model search catalog lists these models as available. This
    breaks the entire VL/OCR surface of the CLI for anyone who does not pass
    --base-url explicitly.
Ngôn ngữ chính
TypeScript
Star
527
Fork
33
Merge trung bình
6 giờ 11 phút
Pull request đã merge (30 ngày)
26

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 modelstudioai/cli

Tất cả issue của modelstudioai/cli

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.