Local Ai
GLM 5.2 via OpenRouter/OpenCode
Guys, this is my current opencode.jsonc ``` { '$schema': 'https://opencode.ai/config.json', // Start in plan mode 'default_agent': 'plan', // Use OpenRouter as the provider for GLM 5.2 'model': 'openr
Guys, this is my current opencode.jsonc { "$schema": "https://opencode.ai/config.json", // Start in plan mode "default_agent": "plan", // Use OpenRouter as the provider for GLM 5.2 "model": "openrouter/z-ai/glm-5.2", "provider": { "openrouter": { "options": { "baseURL": "https://openrouter.ai/api/v1", "apiKey": "sk-or-v1-my-key" }, "models": { "z-ai/glm-5.2": { "name": "GLM 5.2", "options": { "reasoningEffort": "high" // Modified: "high" or "xhigh" } } } } } } How can i clamp my llm model ( glm 5.2 ) provider to z.ai ( z-ai/fp8 ) with a fallback to Alibaba ( alibaba ) z-ai/fp8 and alibaba are the slugs for the providers in openrouter. Thanks in advance. submitted by /u/gmmarcus [link] [comments]
Related
- How much more useage do you get from a $20 pro plan when using cloud models? Or OpenRouter better??
- OpenStudio - Hybrid local/cloud (openrouter) AI router
- Ollama Pro vs. OpenCode Go vs AliBaba Coding Plan [D]
Source: r/ollama | 2026-07-22