refactor(provider-grok): move Grok into its own provider package #17357
Merged
juliusmarmingemerged 3 commits into
t3/provider-acp-core fromrefs/pull/17357/head·merged by juliusmarminge View on GitHubShowing 45 changed files with 3 additions and 16 deletions (loading 41).
x
@@ -93,22 +93,6 @@
- if (props.provider === "grok") {
- const fill = isDarkMode ? "#F5F5F5" : "#0F0F0F";
- return (
- <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
- <Path
- fill={fill}
- d="M9.26905 15.284L17.2479 9.36086C17.6391 9.07047 18.1981 9.18374 18.3845 9.63478C19.3655 12.0135 18.9272 14.8721 16.9755 16.8349C15.0238 18.7976 12.3082 19.228 9.8261 18.2477L7.1146 19.5102C11.0037 22.1834 15.7263 21.5223 18.6774 18.5525C21.0182 16.1985 21.7432 12.9897 21.0653 10.0961L21.0714 10.1023C20.0884 5.85143 21.3131 4.15233 23.8218 0.677913C23.8812 0.595532 23.9406 0.513151 24 0.428711L20.6987 3.74866V3.73836L9.267 15.2861"
- />
- <Path
- fill={fill}
- d="M7.62249 16.7237C4.83113 14.0422 5.3124 9.89222 7.69417 7.49905C9.45541 5.72786 12.341 5.00497 14.86 6.06768L17.5653 4.81138C17.0779 4.45714 16.4533 4.07613 15.7365 3.80839C12.4966 2.46764 8.6178 3.13492 5.98413 5.78141C3.45081 8.32904 2.65415 12.2463 4.02219 15.5889C5.04412 18.0871 3.36889 19.8541 1.68137 21.6377C1.08337 22.2699 0.483318 22.9022 0 23.5716L7.62045 16.7257"
- />
- </Svg>
- );
- }
-
🟡 Medium components/ProviderIcon.tsx:96
Grok providers now render the Codex/OpenAI fallback icon instead of the Grok glyph: getProviderClient("grok") returns undefined because the mobile registry omits grokClient, so this package-icon lookup falls through. Add grokClient to the registry before removing the Grok-specific branch.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @apps/mobile/src/components/ProviderIcon.tsx around line 96:
Grok providers now render the Codex/OpenAI fallback icon instead of the Grok glyph: `getProviderClient("grok")` returns `undefined` because the mobile registry omits `grokClient`, so this package-icon lookup falls through. Add `grokClient` to the registry before removing the Grok-specific branch.
Fixed in ec12c3d482: the registry entry was lost when the formatter wrapped the array. grokClient is now registered on mobile.
@@ -1,6 +1,7 @@