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", "")
|
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": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue