fix the command line of open code compose file

This commit is contained in:
2026-06-20 21:39:09 +00:00
parent bc4ed4957e
commit 274df57ef6
3 changed files with 9 additions and 4 deletions
+4
View File
@@ -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)
+1 -1
View File
@@ -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"]
+4 -3
View File
@@ -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
}
}
}