diff --git a/opencode/README.md b/opencode/README.md index 175e68d..ecc6355 100644 --- a/opencode/README.md +++ b/opencode/README.md @@ -19,3 +19,7 @@ You can copy the config.json file to your volume. Change the model and host dat ## Gotcha Config ollama: https://github.com/p-lemonish/ollama-x-opencode + +## ENV + +OPENCODE_SERVER_PASSWORD (complains if not set) diff --git a/opencode/compose.yaml b/opencode/compose.yaml index c7bfefd..f274fb4 100644 --- a/opencode/compose.yaml +++ b/opencode/compose.yaml @@ -20,4 +20,4 @@ services: ports: - "${OPENCODE_PORT:-4096}:4096" - command: ["serve", "--port", "${OPENCODE_PORT:-4096}"] + command: ["serve", "--port", "${OPENCODE_PORT:-4096}", "--hostname", "0.0.0.0"] diff --git a/opencode/config/config.json b/opencode/config/config.json index b326184..dfe6cac 100644 --- a/opencode/config/config.json +++ b/opencode/config/config.json @@ -1,18 +1,19 @@ { "$schema": "https://opencode.ai/config.json", - "model": "qwen3:8b-16k", + "model": "ollama/qwen3:8b-16k", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "options": { - "baseURL": "http://localhost:11434/api/v1" + "baseURL": "http://localhost:11434/v1" }, "models": { "qwen3:8b-16k": { "name": "Qwen3 8B (16k UI-Context)", "tools": true, "limit": { - "maxTokens": 8192 + "context": 16384, + "output": 8192 } } }