Generated with Hive: Add xAI as first-class model provider with direct XAI_API_KEY authentication - #5227
Merged
Merged
Conversation
…t XAI_API_KEY authentication
tomsmith8
enabled auto-merge (squash)
September 2, 2026 14:25
3 tasks
Evanfeenstra
added a commit
that referenced
this pull request
Sep 2, 2026
aieo 0.1.35 ships xai as a first-class provider, so hive no longer needs the guards added in #5227 that assumed it didn't: - Bump aieo to ^0.1.35. - Remove the runCanvasAgent throw for xai/* models; Grok now flows through the same generic aieo provider branch as everything else. - Remove the client-side XAI filter in CanvasAgentSettingsPopover; the server-side key filter on /api/llm-models already covers availability. - Delete the test that pinned the throw. - Add models-aieo-parity.test.ts: models.ts can't import aieo (it's bundled client-side), so this pins its provider->env-var table to aieo's PROVIDERS and key lookup to prevent drift. - Rewrite stale comments claiming aieo lacks xai or pointing at nonexistent "feature notes". The Bifrost bypasses in the agent route and task-workflow stay: the remaining blocker is that the VK provider allow-list and the swarm gateways have no xai provider configured, not aieo. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Evanfeenstra
added a commit
that referenced
this pull request
Sep 2, 2026
PR #5227 added `SAFE_NAME_RE` that rejects `/` in `LlmModel.name`. OpenRouter ids are `vendor/model` and are stored in `name` for `provider=OTHER`, so admin save/edit of those rows now 400s. This keeps the slash block for first-class providers (the xAI key-confusion case) and allows `/`-delimited segments only when `provider` is `OTHER`. `providerLabel` still cannot contain slashes (it is the first path segment used for API-key resolution).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generated with Hive: Add xAI as first-class model provider with direct XAI_API_KEY authentication