Added models + instructions + config
This commit is contained in:
@@ -33,3 +33,8 @@ docker compose exec opencode opencode run --model weave/glm-5.2 "..."
|
||||
- `config/opencode/` - image: Dockerfile + baked `opencode.json`
|
||||
- `data/` - persisted opencode state (gitignored)
|
||||
- `docker-compose.yml` - opencode service
|
||||
|
||||
## Caveats
|
||||
|
||||
- **No model discovery on weave.** I haven't found a way to discover models on weave.redpencil.io, so they are configured explicitly in `opencode.json` (see `provider.weave.models`). When the catalog changes, update that list by hand.
|
||||
- **Copy from the TUI is broken over Docker.** `COPY` from the TUI isn't working properly in a container. I've only found messy workarounds, no real solution yet - kept things simple here instead.
|
||||
|
||||
@@ -17,8 +17,39 @@
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"options": { "baseURL": "https://weave.redpencil.io/v1", "apiKey": "{env:WEAVE_API_KEY}" },
|
||||
"models": {
|
||||
"deepinfra/anthropic/claude-4-opus": { "tools": true },
|
||||
"glm-5.2": { "tools": true }
|
||||
"claude-sonnet": { "tools": true },
|
||||
"claude-opus": { "tools": true },
|
||||
"claude-haiku": { "tools": true },
|
||||
"Mistral-Small-3.2-24B-Instruct-2506": { "tools": true },
|
||||
"phi-4": { "tools": true },
|
||||
"gemini-3.5-flash": { "tools": true },
|
||||
"gemini-3.1-pro": { "tools": true },
|
||||
"qwen3.6-35B-A3B": { "tools": true },
|
||||
"qwen3-coder-480B-A35B-Instruct": { "tools": true },
|
||||
"glm-5.2": { "tools": true },
|
||||
"kimi-K2.7-code": { "tools": true },
|
||||
"MiniMax-M2.7": { "tools": true },
|
||||
"DeepSeek-V4-Flash": { "tools": true },
|
||||
"DeepSeek-V4-Pro": { "tools": true },
|
||||
"nemotron-3-ultra": { "tools": true },
|
||||
"mimo-v2.5-pro": { "tools": true },
|
||||
"qwen3-max-thinking": { "tools": true },
|
||||
"gpt-oss-120b": { "tools": true },
|
||||
"mistral-large": { "tools": true },
|
||||
"mistral-medium": { "tools": true },
|
||||
"mistral-small": { "tools": true },
|
||||
"magistral-medium": { "tools": true },
|
||||
"magistral-small": { "tools": true },
|
||||
"codestral": { "tools": true },
|
||||
"devstral": { "tools": true },
|
||||
"mistral-embed": { "tools": false },
|
||||
"mistral-ocr": { "tools": false },
|
||||
"ministral-14b": { "tools": true },
|
||||
"ministral-8b": { "tools": true },
|
||||
"ministral-3b": { "tools": true },
|
||||
"local-gemma3:27b-it-qat": { "tools": true },
|
||||
"local-gpt-oss:20b": { "tools": true },
|
||||
"local-qwen3.6:27b": { "tools": true }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user