From a342645c4b30e087e378e7c3f879ee540bb85e2b Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Thu, 19 Mar 2026 11:08:38 +0000 Subject: [PATCH] mod: config for gemma --- opencode.cfg/opencode.json | 58 +++++++++++++++----------------------- 1 file changed, 22 insertions(+), 36 deletions(-) diff --git a/opencode.cfg/opencode.json b/opencode.cfg/opencode.json index a53bcb7..ead9265 100644 --- a/opencode.cfg/opencode.json +++ b/opencode.cfg/opencode.json @@ -1,8 +1,8 @@ { + "$schema": "https://opencode.ai/config.json", "plugin": [], - "theme": "system", "model": "halo/qwen3-coder-next:latest", - "small_model": "halo/gemma3:4b", + "small_model": "gemma3:4b", "provider": { "halo": { "npm": "@ai-sdk/openai-compatible", @@ -22,43 +22,29 @@ }, "gemma3:4b": { "name": "Gemma *", - "capabilities": { - "temperature": false, - "reasoning": false, - "attachment": false, - "toolcall": true, - "input": { - "text": true, - "audio": false, - "image": true, - "video": false, - "pdf": false - }, - "output": { - "text": true, - "audio": false, - "image": false, - "video": false, - "pdf": false - }, - "interleaved": false + "temperature": false, + "reasoning": false, + "attachment": true, + "tool_call": false, + "modalities": { + "input": [ + "text", + "image" + ], // Explicitly declare image support + "output": [ + "text" + ] }, - "cost": { - "input": 0, - "output": 0, - "cache": { - "read": 0, - "write": 0 - } - }, - "options": {}, "limit": { - "context": 0, - "output": 0 + "context": 100000, // Maximum context window (input + output) + "output": 8192 // Maximum output tokens + }, + "options": { + "num_ctx": 16000 // Context window size for Ollama }, "headers": {}, - "family": "", - "release_date": "", + "family": "gemma", + "release_date": "13 March 2025", "variants": {} } } @@ -67,7 +53,7 @@ "server": { "port": 4096, "hostname": "0.0.0.0", - "mdns": true, + "mdns": false, "cors": [ "https://example.com" ]