doublehappy123/dsh-v4flash-tiler0

dsh-v4flash-tiler

DSH plugin: auto-tiles oversized chat images into labelled grid pieces (row/col metadata, overlap-aware, multi-image group isolation) so the DeepSeek vision model keeps fine detail instead of the ~800px downsample.

包名
dsh-v4flash-tiler
版本
0.2.0
许可证
MIT
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:doublehappy123/dsh-v4flash-tiler

使用

  • 聊天自动分块:直接发送任意图片。任一边 > 1024px 自动切块并标注行列;小图原样直通;失败自动回退原图并在消息中说明原因。
  • 命令行engine/ 安装后):
    v4flash-tiler --image screenshot.png --mode auto --dry-run      # 只看分块计划
    v4flash-tiler --image screenshot.png --prompt "提取全部文字"    # 调 API 分析
    
  • Python API
    from v4flash_tiler import DeepSeekVisionClient
    result = DeepSeekVisionClient().analyze_image("large.png", prompt="分析这张图")
    

配置要点

  • 阈值:任一边 > 1024px 即分块;单图最多 9 块(1024px、15% 重叠、JPEG 质量 90)
  • 每条消息图块总数受 DSH 附件上限保护,超限图片保持原图直通
  • 每块输入 token 约 384,9 块 ≈ 3400 token/图