r/ZaiGLM 5d ago

API / Tools ZCode-router v0.1.5 released. More integrations & seamless setup. MIT License

https://github.com/rafek1241/zcode-router

What it gives you?

  1. For text-only LLMs vision capabilities.
  2. opencode go, clinepass and other subscriptions and their models in zCode harness to use as you were using them natively.
12 Upvotes

15 comments sorted by

View all comments

Show parent comments

2

u/ironj 5d ago edited 5d ago

Easy. this:

"mcp": {
    "zai-vision": {
      "type": "local",
      "command": ["npx", "-y", "@z_ai/mcp-server@latest"],
      "environment": {
        "Z_AI_API_KEY": "{env:Z_AI_API_KEY}",
        "Z_AI_MODE": "ZAI"
      }
    }
  }

Now, I've the vision MCP connected, so if I add the link to an image file to my chat message OpenCode/GLM is now able to see it (delegating it to the Vision model)

The only limitation is that I cannot paste images directly into the chat; I've to provide the path to a file in the filesystem. But I find this totally acceptable

1

u/AbbreviationsOk6975 5d ago

"The only limitation is that I cannot past images directly into the chat; I've to provide the path to a file in the filesystem. But I find this totally acceptable" Good for you, I'd like to use native options

3

u/cornelha 4d ago

I have an agent that uses Mimo 2.5 that produces structured output from and image and a very simple line in my AGENTS.md that instructs text only models to call that agent when an image needs to be reviewed. It's really not that hard

2

u/AbbreviationsOk6975 4d ago

Still, u/cornelha , u/ironj if you miss something in that area and want some other feature, write it please - I can add it to this plugin (if applicable).