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 ## Gotcha
Config ollama: https://github.com/p-lemonish/ollama-x-opencode 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: ports:
- "${OPENCODE_PORT:-4096}:4096" - "${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", "$schema": "https://opencode.ai/config.json",
"model": "qwen3:8b-16k", "model": "ollama/qwen3:8b-16k",
"provider": { "provider": {
"ollama": { "ollama": {
"npm": "@ai-sdk/openai-compatible", "npm": "@ai-sdk/openai-compatible",
"options": { "options": {
"baseURL": "http://localhost:11434/api/v1" "baseURL": "http://localhost:11434/v1"
}, },
"models": { "models": {
"qwen3:8b-16k": { "qwen3:8b-16k": {
"name": "Qwen3 8B (16k UI-Context)", "name": "Qwen3 8B (16k UI-Context)",
"tools": true, "tools": true,
"limit": { "limit": {
"maxTokens": 8192 "context": 16384,
"output": 8192
} }
} }
} }