5 Commits

2 changed files with 55 additions and 47 deletions

View File

@@ -1,75 +1,83 @@
{
"$schema": "https://opencode.ai/config.json",
"model": "weave/glm-5.3-flash",
"small_model": "weave/glm-5.3-flash",
"lsp": {
"typescript": {
"command": [
"typescript-language-server",
"--stdio"
],
"extensions": [
".ts",
".tsx",
".js",
".jsx",
".mjs",
".cjs",
".mts",
".cts"
]
},
"pyright": {
"command": [
"pyright-langserver",
"--stdio"
],
"extensions": [
".py",
".pyi"
]
"agents": {
"title": {
"model": "weave/glm-5.3-flash"
}
},
"provider": {
"providers": {
"weave": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"package": "@opencode/ai/providers/openai-compatible",
"settings": {
"baseURL": "https://weave.redpencil.io/v1",
"apiKey": "{env:WEAVE_API_KEY}"
},
"models": {
"kimi-K2.7-code": {
"tools": true
"capabilities": {
"tools": true
}
},
"glm-5.3": {
"tools": true
"capabilities": {
"tools": true
}
},
"glm-5.3-flash": {
"tools": true
"capabilities": {
"tools": true
}
},
"mistral-glm-5.2": {
"tools": true,
"reasoning": true,
"options": {
"capabilities": {
"tools": true,
"reasoning": {
"supported": true
}
},
"settings": {
"reasoningEffort": "xhigh"
}
},
"devstral": {
"tools": true
"capabilities": {
"tools": true
}
},
"local-qwen3.6:27b": {
"tools": true
"capabilities": {
"tools": true
}
},
"mistral-medium": {
"tools": true
"capabilities": {
"tools": true
}
}
}
}
},
"permission": {
"read": "ask",
"edit": "ask",
"bash": "ask",
"external_directory": "ask"
}
}
"permissions": [
{
"action": "read",
"resource": "*",
"effect": "ask",
},
{
"action": "edit",
"resource": "*",
"effect": "ask",
},
{
"action": "shell",
"resource": "*",
"effect": "ask",
},
{
"action": "external_directory",
"resource": "*",
"effect": "ask",
},
],
}

View File

@@ -1,6 +1,6 @@
services:
opencode:
image: redpencil/opencode:0.0.2
image: redpencil/opencode:feature-opencode-v2
volumes:
- ./data/opencode/share:/root/.local/share/opencode
- ./config/opencode/opencode.json:/root/.config/opencode/opencode.json