[Bug]: Ollama get_model_info constructs redundant path …/api/chat/api/show, causing 404s on remote instances
![[Bug]: Ollama get_model_info constructs redundant path .../api/chat/api/show, causing 404s on remote instances](https://www.chat-gpts.plus/wp-content/uploads/2026/08/25567-aee8822a-768x403.jpg)
该报错通常出现在 LiteLLM 连接远程 Ollama 实例并触发后台模型信息检查时,由于 api_base 中残留了 /api/chat 之类的 provider 后缀,LiteLLM 直接拼接出 /api/chat/api/show 这样的畸形 URL,导致远端 Ollama 返回 404。优








