hotfix: wire the xai provider into install-opencode.sh #115

Merged
ffaerber merged 1 commits from hotfix/xai-provider-wiring into main 2026-07-27 15:49:46 +02:00
Owner

PR #114 pointed @lead/@ops at xai/grok-4.5 but never gave opencode a provider config for it — xai is not a built-in provider like anthropic was, it needs the same explicit OpenAI-compatible block as ollama/ollama-cloud. Confirmed against the prior, never-merged investigation in #110 (gitea/ops issue #12), which built the same fix. Without this, any @lead/@ops run currently fails immediately on an unresolvable provider.

Adds the xai provider block (baseURL https://api.x.ai/v1, models derived from agents.json) and passes XAI_API_KEY into the Install-opencode step (it was already added to the Run-agent step in #114).

PR #114 pointed `@lead`/`@ops` at `xai/grok-4.5` but never gave opencode a provider config for it — `xai` is not a built-in provider like `anthropic` was, it needs the same explicit OpenAI-compatible block as `ollama`/`ollama-cloud`. Confirmed against the prior, never-merged investigation in #110 (gitea/ops issue #12), which built the same fix. Without this, any `@lead`/`@ops` run currently fails immediately on an unresolvable provider. Adds the `xai` provider block (`baseURL https://api.x.ai/v1`, models derived from `agents.json`) and passes `XAI_API_KEY` into the Install-opencode step (it was already added to the Run-agent step in #114).
ffaerber added 1 commit 2026-07-27 15:49:35 +02:00
hotfix: wire the xai provider into install-opencode.sh
ci / lint (pull_request) Successful in 21s
dd25c0ac2b
PR #114 pointed @lead/@ops at xai/grok-4.5 but never gave opencode a
provider config for it — xai is not a built-in like anthropic was, it
needs the same explicit OpenAI-compatible block as ollama/ollama-cloud
(confirmed by the prior, never-merged investigation in PR #110). Without
this, any @lead/@ops run fails immediately on an unresolvable provider.

Adds the xai provider block (baseURL https://api.x.ai/v1, models derived
from agents.json) and passes XAI_API_KEY into the Install-opencode step
(it was already added to the Run-agent step in #114).
ffaerber merged commit 60f9e95ecc into main 2026-07-27 15:49:46 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gitea/agents#115