mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +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
|
## 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)
|
||||||
|
|||||||
@@ -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"]
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user