Skip to content

feat(ai): add xAI image generation - #37778

Merged
rekram1-node merged 1 commit into
v2from
xai-images
Jul 20, 2026
Merged

feat(ai): add xAI image generation#37778
rekram1-node merged 1 commit into
v2from
xai-images

Conversation

@opencode-agent

@opencode-agentopencode-agentBot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add XAI.configure({ apiKey, baseURL, headers, http }).image(modelID) on the merged Image API foundation
  • expose open, inferred xAI request options with camelCase-to-native mapping and raw/HTTP override precedence
  • support arbitrary model IDs and future options without compatibility rejection
  • preserve nullable xAI responses, URL/base64 results, safe MIME fallback, billing usage metadata, and custom auth
  • add focused request/type coverage and a replayable live generation cassette

Validation

  • package-scoped Prettier
  • bun typecheck in packages/ai (source and all type tests)
  • bun run build in packages/ai
  • full packages/ai suite: 379 passed, 29 skipped
  • xAI cassette replay: 1 passed
  • git diff --check
  • cassette credential scan passed; wire body unchanged, so no re-record was needed
  • blocker-only self-review: no findings

Requested by: @rekram1-node (Aiden Cline via Slack)

@rekram1-node
rekram1-node merged commit df1f42d into v2Jul 20, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the xai-images branch July 20, 2026 20:00
github-actionsBot pushed a commit to ReStranger/opencode that referenced this pull request Jul 20, 2026
* upstream/v2: (63 commits)
feat(codemode): add Set method parity (anomalyco#38000)
fix(core): match dev patch behavior (anomalyco#37709)
refactor(tui): migrate diff viewer to V2 theme (anomalyco#37999)
feat(ai): support image-guided generation (anomalyco#37998)
feat(ai): add Z.ai image generation (anomalyco#37780)
chore: merge dev into v2 (anomalyco#37996)
refactor(tui): expose theme colors as properties (anomalyco#37995)
feat(ai): add Google image generation (anomalyco#37781)
fix(cli): isolate bun updater cache
feat(ai): add xAI image generation (anomalyco#37778)
feat(codemode): add groupBy parity (anomalyco#37992)
refactor(ai): infer image provider options (anomalyco#37948)
fix(core): ignore empty provider api keys
feat(tui): add categorical theme hues (anomalyco#37985)
refactor(core): inject models options
refactor(server): inject database options
fix(tui): make migrated selected background transparent (anomalyco#37967)
feat(codemode): complete date parity (anomalyco#37960)
feat(codemode): complete regexp and math parity (anomalyco#37955)
fix(tui): adapt file badge accent to theme mode (anomalyco#37953)
...
github-actionsBot pushed a commit to ReStranger/opencode that referenced this pull request Jul 21, 2026
* upstream/v2: (65 commits)
refactor(server): inject runtime options
refactor(server): centralize server options
feat(codemode): add Set method parity (anomalyco#38000)
fix(core): match dev patch behavior (anomalyco#37709)
refactor(tui): migrate diff viewer to V2 theme (anomalyco#37999)
feat(ai): support image-guided generation (anomalyco#37998)
feat(ai): add Z.ai image generation (anomalyco#37780)
chore: merge dev into v2 (anomalyco#37996)
refactor(tui): expose theme colors as properties (anomalyco#37995)
feat(ai): add Google image generation (anomalyco#37781)
fix(cli): isolate bun updater cache
feat(ai): add xAI image generation (anomalyco#37778)
feat(codemode): add groupBy parity (anomalyco#37992)
refactor(ai): infer image provider options (anomalyco#37948)
fix(core): ignore empty provider api keys
feat(tui): add categorical theme hues (anomalyco#37985)
refactor(core): inject models options
refactor(server): inject database options
fix(tui): make migrated selected background transparent (anomalyco#37967)
feat(codemode): complete date parity (anomalyco#37960)
...
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rekram1-node