Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉 適合新手
#241 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
78/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript

研究方向

找出 vision describe 命令,並比較它與其他 API 金鑰命令解析基礎 URL 的方式。追蹤 --base-url、DASHSCOPE_BASE_URL 和所選設定檔的 base_url 對應的端點選擇;執行 vision 命令測試。完成條件是使用已設定的端點,或預設端點指向提供 VL/OCR 模型的公開端點。

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
TypeScript
星號
527
分支
33
平均合併
6 小時 11 分鐘
30 天內合併 PR
26

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

modelstudioai/cli 的其他 Issue

查看 modelstudioai/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。