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