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": {