From e945ef82ee2fcc4ef33ca2e2e79617d4025d2ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Sat, 30 May 2026 18:12:20 -0700 Subject: [PATCH] fix: opencode config uses provider (singular) with npm/options structure --- container/entrypoint.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/container/entrypoint.py b/container/entrypoint.py index 7ccd30a..8602d2c 100644 --- a/container/entrypoint.py +++ b/container/entrypoint.py @@ -94,11 +94,16 @@ def write_opencode_config(secrets: dict, role: str) -> None: forgejo_token = secrets.get("forgejo-token", "") config = { - "model": f"litellm/copilot/claude-sonnet-4.6", - "providers": { + "$schema": "https://opencode.ai/config.json", + "model": "litellm/copilot/claude-sonnet-4.6", + "provider": { "litellm": { - "apiKey": litellm_key, - "baseURL": f"{LITELLM_BASE_URL}/v1", + "npm": "@ai-sdk/openai-compatible", + "name": "LiteLLM", + "options": { + "baseURL": f"{LITELLM_BASE_URL}/v1", + "apiKey": litellm_key, + } } }, "mcp": {