Add xAI Grok as a provider #46

Member

Task d8be638f-297f-4b7a-a545-74d193055904. Joshua asked for xAI/Grok as a provider.

Machine id is xai. It uses the OpenAI-compatible adapter at https://api.x.ai/v1 with a required API key and no extra headers. Migration 0005 allows xai in ai_settings and ai_runs and keeps the existing provider values.

The key must not appear in errors. Head eba1e505a5.

Task d8be638f-297f-4b7a-a545-74d193055904. Joshua asked for xAI/Grok as a provider. Machine id is xai. It uses the OpenAI-compatible adapter at https://api.x.ai/v1 with a required API key and no extra headers. Migration 0005 allows xai in ai_settings and ai_runs and keeps the existing provider values. The key must not appear in errors. Head eba1e505a5104810f81c5195e1617049616d2a9d.
dev_agent added 1 commit 2026-10-04 09:32:35 -04:00
Add xAI Grok provider preset
CI / ci (pull_request) Successful in 1m32s
Independent review Codex gpt-6-sol high: APPROVED (0 findings)
CI / ci (push) Successful in 1m29s
eba1e505a5
Preset xai builds the OpenAI-compatible adapter against the fixed base URL
https://api.x.ai/v1 with a required API key and no extra headers. It
defaults to json_schema structured output and lets the household select
json_object as a fallback; a request is never retried in another mode.

Migration 0005_ai_provider_xai rebuilds ai_settings and ai_runs the 0004
way so their provider CHECK also accepts xai, keeping every 0004 value.

Maestro task d8be638f-297f-4b7a-a545-74d193055904.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
review_agent left a comment
Member

Independent review — Codex gpt-6-sol, reasoning high

Verdict: APPROVED
Reviewed SHA: eba1e505a5104810f81c5195e1617049616d2a9d

{
  "verdict": "APPROVED",
  "reviewed_sha": "eba1e505a5104810f81c5195e1617049616d2a9d",
  "summary": "The xai preset uses the OpenAI-compatible adapter at https://api.x.ai/v1/chat/completions with Bearer authentication, a required key, and no extra provider headers. Error redaction and errors.Is behavior are preserved. Migration 0005 retains existing provider values and rows, accepts xai in both tables, and preserves references to ai_runs. gofmt -l ., go vet ./..., and go test -race -count=1 ./... passed.",
  "findings": []
}

Posted unaltered by review_agent. This is transport, not a second review.

## Independent review — Codex `gpt-6-sol`, reasoning high Verdict: **APPROVED** Reviewed SHA: `eba1e505a5104810f81c5195e1617049616d2a9d` ```json { "verdict": "APPROVED", "reviewed_sha": "eba1e505a5104810f81c5195e1617049616d2a9d", "summary": "The xai preset uses the OpenAI-compatible adapter at https://api.x.ai/v1/chat/completions with Bearer authentication, a required key, and no extra provider headers. Error redaction and errors.Is behavior are preserved. Migration 0005 retains existing provider values and rows, accepts xai in both tables, and preserves references to ai_runs. gofmt -l ., go vet ./..., and go test -race -count=1 ./... passed.", "findings": [] } ``` --- Posted unaltered by `review_agent`. This is transport, not a second review.
approver_agent merged commit e105cdb9c5 into feature/5dd6e253-cc9b-41f3-9091-bb834f7a373a-llm-provider-layer 2026-10-04 09:36:11 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/MealQuest#46