fix: opencode config uses provider (singular) with npm/options structure
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
90f80d9220
commit
e945ef82ee
1 changed files with 9 additions and 4 deletions
|
|
@ -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,
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "LiteLLM",
|
||||
"options": {
|
||||
"baseURL": f"{LITELLM_BASE_URL}/v1",
|
||||
"apiKey": litellm_key,
|
||||
}
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue