From 5241f5d805bfa91a41f548dc7ba588a4c4f9ae52 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Fri, 27 Feb 2026 15:44:43 +0000 Subject: [PATCH] [mod] use single local provider --- docker-images/Dockerfile.agent | 35 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/docker-images/Dockerfile.agent b/docker-images/Dockerfile.agent index 4583959..55f5543 100644 --- a/docker-images/Dockerfile.agent +++ b/docker-images/Dockerfile.agent @@ -63,26 +63,21 @@ cat < /root/.config/opencode/opencode.json { "plugin": ["oh-my-opencode"], "theme": "oh-my-opencode", + "model": "local/glm47", + "small_model": "local/gemma" "default_agent": "Sisyphus", "provider": { - "local-planner": { + "local": { "npm": "@ai-sdk/openai-compatible", - "name": "GLM 4.7 (Planner)", + "name": "local models", "options": { "baseURL": "http://host.docker.internal:11434/v1" }, - "models": { "glm": { "name": "hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K" } } - }, - "local-oracle": { - "npm": "@ai-sdk/openai-compatible", - "name": "LFM2 24B (Context)", - "options": { "baseURL": "http://host.docker.internal:11434/v1" }, - "models": { "lfm2": { "name": "hf.co/LiquidAI/LFM2-24B-A2B-GGUF:Q8_0" } } - }, - "local-coder": { - "npm": "@ai-sdk/openai-compatible", - "name": "Qwen3 Next (Coder)", - "options": { "baseURL": "http://host.docker.internal:11434/v1" }, - "models": { "qwen3": { "name": "qwen3-coder-next:latest" } } - } + "models": { "glm47": { "name": "hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K" }, + "lfm2": { "name": "hf.co/LiquidAI/LFM2-24B-A2B-GGUF:Q8_0" }, + "qwen3": { "name": "qwen3-coder-next:latest" }, + "gemma3": {"name": "gemma3:4b"} + } + } + } } EOF @@ -92,10 +87,10 @@ EOF RUN cat < /root/.config/opencode/oh-my-opencode.json { "agents": { - "sisyphus": { "model": "local-planner/glm" }, - "oracle": { "model": "local-oracle/lfm2" }, - "librarian": { "model": "local-oracle/kimi" }, - "build": { "model": "local-coder/qwen3" } + "sisyphus": { "model": "local/glm47" }, + "oracle": { "model": "local/lfm2" }, + "librarian": { "model": "local/glm47" }, + "build": { "model": "local/qwen3" } }, "disabled_agents": ["multimodal-looker"], "confirm_dangerous_actions": false