[mod] use single local provider
This commit is contained in:
parent
666065e964
commit
5241f5d805
1 changed files with 15 additions and 20 deletions
|
|
@ -63,26 +63,21 @@ cat <<EOF > /root/.config/opencode/opencode.json
|
|||
{
|
||||
"plugin": ["oh-my-opencode"],
|
||||
"theme": "oh-my-opencode",
|
||||
"model": "local/glm47",
|
||||
"small_model": "local/gemma"
|
||||
"default_agent": "Sisyphus",
|
||||
"provider": {
|
||||
"local-planner": {
|
||||
"local": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "GLM 4.7 (Planner)",
|
||||
"name": "local models",
|
||||
"options": { "baseURL": "http://host.docker.internal:11434/v1" },
|
||||
"models": { "glm": { "name": "hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K" } }
|
||||
},
|
||||
"local-oracle": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "LFM2 24B (Context)",
|
||||
"options": { "baseURL": "http://host.docker.internal:11434/v1" },
|
||||
"models": { "lfm2": { "name": "hf.co/LiquidAI/LFM2-24B-A2B-GGUF:Q8_0" } }
|
||||
},
|
||||
"local-coder": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "Qwen3 Next (Coder)",
|
||||
"options": { "baseURL": "http://host.docker.internal:11434/v1" },
|
||||
"models": { "qwen3": { "name": "qwen3-coder-next:latest" } }
|
||||
}
|
||||
"models": { "glm47": { "name": "hf.co/unsloth/GLM-4.7-Flash-GGUF:Q6_K" },
|
||||
"lfm2": { "name": "hf.co/LiquidAI/LFM2-24B-A2B-GGUF:Q8_0" },
|
||||
"qwen3": { "name": "qwen3-coder-next:latest" },
|
||||
"gemma3": {"name": "gemma3:4b"}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
|
@ -92,10 +87,10 @@ EOF
|
|||
RUN cat <<EOF > /root/.config/opencode/oh-my-opencode.json
|
||||
{
|
||||
"agents": {
|
||||
"sisyphus": { "model": "local-planner/glm" },
|
||||
"oracle": { "model": "local-oracle/lfm2" },
|
||||
"librarian": { "model": "local-oracle/kimi" },
|
||||
"build": { "model": "local-coder/qwen3" }
|
||||
"sisyphus": { "model": "local/glm47" },
|
||||
"oracle": { "model": "local/lfm2" },
|
||||
"librarian": { "model": "local/glm47" },
|
||||
"build": { "model": "local/qwen3" }
|
||||
},
|
||||
"disabled_agents": ["multimodal-looker"],
|
||||
"confirm_dangerous_actions": false
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue