Status: [LIVE] Endpoints found: https://open.bigmodel.cn/api/paas/v4 Source: https://github.com/tkr520521/codex-vision-bridge # Codex Vision Bridge > Give **text-only LLMs (DeepSeek / GLM / MiMo) eyes inside Codex** — paste an image and it becomes a text description automatically. No model switch, no web app, no friction. ## Highlights - **Paste-image strip proxy** — converts image segments into text descriptions before they reach your upstream, so `unknown variant image_url, expected text` errors never happen - **`view_image` interception** — blocks the built-in `view_image` call and injects a description instead; text-only models are never rejected - **Fail-open by design** — vision service down or misconfigured? Requests pass through unchanged, normal flow never breaks - **Zero dependencies** — pure Python stdlib (`urllib` / `http.server`), Windows / macOS / Linux - **Bring your own vision API** — any OpenAI-compatible vision endpoint (default: Zhipu free `glm-4v-flash`) ## Quick Start ```bash # 1. Start the local strip proxy (default port 19100) python scripts/vision_strip_proxy.py # 2. Point your Codex relay/upstream at http://127.0.0.1:19100 # 3. Install the hooks (auto_vision_hook.py: PreToolUse + UserPromptSubmit) ``` Full setup, architecture and benchmarks: see **Chinese docs below**. --- ## 中文说明 / Chinese Docs 让 **DeepSeek / GLM / MiMo** 等纯文本模型在 Codex 里也能"看图"的插件: 粘贴图片自动识别、`view_image` 自动转成文字,全程无感,无需换模型、无需代理到网页版。 > 已在 Codex + DeepSeek(经本地 relay)环境实测:粘贴图片不再报错,识别描述自动注入。 ### 解决了什么问题 | 场景 | 没有本插件时 | | --- | --- | | 粘贴/发送图片给 DeepSeek | Codex 把图片段(`input_image`)原样发给接口,本地转发服务直接报错:`unknown variant image_url, expected text`,或图片被静默丢弃 | | 模型调用内置 `view_image` | 纯文本模型被拒绝:`view_image is not allowed because you do not support image inputs` | ### 原理 三个ç