Files
chatgpt-on-wechat/channel/web
zhayujie 26693acc3f feat(vision): prioritize main model for image recognition with multi-provider fallback
- Add call_vision method to all bot implementations (DashScope, Claude,
  Gemini, ZhipuAI, MiniMax, Doubao, Moonshot, OpenAICompatibleBot)
  using each vendor's native multimodal API format
- Remove call_with_tools/call_vision from Bot base class to fix MRO
  shadowing issue with OpenAICompatibleBot mixin
- Refactor vision tool provider resolution: MainModel → other configured
  models (auto-discovered) → OpenAI → LinkAI, with automatic fallback
- Return actual model name used in call_vision responses
- Sync config.json API keys to .env bidirectionally on startup
- Fix bot instance cache to detect bot_type/use_linkai config changes
- Add SSE reconnection support for web console
- Preserve image path hints in Gemini text for correct vision tool calls
- Update docs/tools/vision.mdx
2026-04-11 19:46:11 +08:00
..
2026-04-01 12:24:21 +08:00

Web Channel

提供了一个默认的AI对话页面可展示文本、图片等消息交互支持markdown语法渲染兼容插件执行。

使用说明

  • config.json 配置文件中的 channel_type 字段填入 web
  • 程序运行后将监听9899端口浏览器访问 http://localhost:9899/chat 即可使用
  • 监听端口可以在配置文件 web_port 中自定义
  • 对于Docker运行方式如果需要外部访问需要在 docker-compose.yml 中通过 ports配置将端口监听映射到宿主机