updated opencode config

This commit is contained in:
2026-06-20 21:17:53 +00:00
parent a3333d344c
commit bc4ed4957e
4 changed files with 28 additions and 10 deletions
+3 -3
View File
@@ -14,10 +14,10 @@ services:
- OPENCODE_PORT=${OPENCODE_PORT:-4096}
- OPENCODE_HOSTNAME=${OPENCODE_HOSTNAME:-0.0.0.0}
- OPENCODE_CONFIG=/config/config.json
- OPENCODE_MODEL=ollama/qwen3:8b-16k
- OLLAMA_HOST=http://10.1.1.16:11434
- OPENCODE_MODEL=qwen3:8b-16k
- OLLAMA_HOST=${OLLAMA_HOST_URL:-http://localhost:11434}
ports:
- "${OPENCODE_PORT:-4096}:4096"
command: ["serve", "--hostname", "0.0.0.0", "--port", "4096"]
command: ["serve", "--port", "${OPENCODE_PORT:-4096}"]
+7 -3
View File
@@ -1,15 +1,19 @@
{
"$schema": "https://opencode.ai/config.json",
"model": "ollama/qwen3:8b-16k",
"model": "qwen3:8b-16k",
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://10.1.1.16:11434/v1"
"baseURL": "http://localhost:11434/api/v1"
},
"models": {
"qwen3:8b-16k": {
"tools": true
"name": "Qwen3 8B (16k UI-Context)",
"tools": true,
"limit": {
"maxTokens": 8192
}
}
}
}
+1
View File
@@ -3,3 +3,4 @@ OPENCODE_RESTART=unless-stopped
VOL_PATH=/home/youruser/.local/share
OPENCODE_PORT=4096
OPENCODE_HOSTNAME=0.0.0.0
OLLAMA_HOST=http://localhost:11434