mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-03 18:36:22 +00:00
fix the command line of open code compose file
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user