fix: opencode config uses provider (singular) with npm/options structure
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Zoë 2026-05-30 18:12:20 -07:00
parent 90f80d9220
commit e945ef82ee

View file

@ -94,11 +94,16 @@ def write_opencode_config(secrets: dict, role: str) -> None:
forgejo_token = secrets.get("forgejo-token", "") forgejo_token = secrets.get("forgejo-token", "")
config = { config = {
"model": f"litellm/copilot/claude-sonnet-4.6", "$schema": "https://opencode.ai/config.json",
"providers": { "model": "litellm/copilot/claude-sonnet-4.6",
"provider": {
"litellm": { "litellm": {
"apiKey": litellm_key, "npm": "@ai-sdk/openai-compatible",
"baseURL": f"{LITELLM_BASE_URL}/v1", "name": "LiteLLM",
"options": {
"baseURL": f"{LITELLM_BASE_URL}/v1",
"apiKey": litellm_key,
}
} }
}, },
"mcp": { "mcp": {