Skip to content

Commit dfc0868

Browse files
committed
fix(byok): add xai settings UI row
xai is both hosted (Pi block hides its inline API key field for hosted models) and Pi-supported (cloud mode requires a user key), so without a Settings > BYOK row users had no way to supply an xai key for Pi cloud runs.
1 parent 91b4b1e commit dfc0868

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/components/byok

apps/sim/app/workspace/[workspaceId]/settings/components/byok/byok.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import {
3333
SerperIcon,
3434
TogetherIcon,
3535
WizaIcon,
36+
xAIIcon,
3637
ZeroBounceIcon,
3738
} from '@/components/icons'
3839
import { MAX_BYOK_KEYS_PER_PROVIDER } from '@/lib/api/contracts/byok-keys'
@@ -75,6 +76,13 @@ const PROVIDERS: (BYOKManagerProvider & { id: BYOKProviderId })[] = [
7576
description: 'LLM calls and Knowledge Base OCR',
7677
placeholder: 'Enter your API key',
7778
},
79+
{
80+
id: 'xai',
81+
name: 'xAI',
82+
icon: xAIIcon,
83+
description: 'LLM calls',
84+
placeholder: 'xai-...',
85+
},
7886
{
7987
id: 'fireworks',
8088
name: 'Fireworks',
@@ -279,6 +287,7 @@ const PROVIDER_SECTIONS: BYOKProviderSection[] = [
279287
'anthropic',
280288
'google',
281289
'mistral',
290+
'xai',
282291
'fireworks',
283292
'together',
284293
'baseten',

0 commit comments

Comments
 (0)