Skip to content

fix(core): map xAI native options - #39787

Merged
rekram1-node merged 4 commits into
v2from
xai-option-mapping
Jul 31, 2026
Merged

fix(core): map xAI native options#39787
rekram1-node merged 4 commits into
v2from
xai-option-mapping

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • explicitly map supported @ai-sdk/xai settings to native xAI provider options
  • validate reasoning effort, storage, prompt cache key, and include values
  • omit invalid and unsupported xAI settings instead of forwarding arbitrary keys
  • add focused mapping tests for merged catalog and user setting inputs

Testing

  • bun typecheck in packages/core
  • bun test test/aisdk-native.test.ts test/model-resolver.test.ts in packages/core (28 pass)

@rekram1-node
rekram1-node merged commit 5b4ebf3 into v2 Jul 31, 2026
6 of 7 checks passed
@rekram1-node
rekram1-node deleted the xai-option-mapping branch July 31, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant