Skip to content

Commit cd35d04

Browse files
committed
chore(cleanup): finish the whitelabel, Redis and self-hosted provider leftovers
1 parent 695ca94 commit cd35d04

22 files changed

Lines changed: 88 additions & 76 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ npx sim-setup reset # archive .env and wipe managed data
137137

138138
The setup package detects how you're running and acts accordingly. Use `--dir <path>` to create or manage a deployment somewhere other than `./sim`.
139139

140-
Sim also supports local models via [Ollama](https://ollama.ai) and [vLLM](https://docs.vllm.ai/). See the [self-hosting docs](https://docs.sim.ai/self-hosting/docker) for details.
140+
Sim also supports local models via [Ollama](https://ollama.ai), [vLLM](https://docs.vllm.ai/), and [LiteLLM](https://docs.litellm.ai/). See the [self-hosting docs](https://docs.sim.ai/self-hosting/docker) for details.
141141

142142
## Chat API Keys
143143

‎apps/docs/content/docs/workflows/blocks/agent.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Answer in two sentences, cite the doc you used, and never guess a price.
3232

3333
### Model
3434

35-
The model that runs the step. Defaults to `claude-sonnet-5-5`. Type or pick any model from OpenAI, Anthropic, Google, xAI, Groq, Cerebras, DeepSeek, Azure, AWS Bedrock, Google Vertex, or OpenRouter, or a local model through Ollama or vLLM.
35+
The model that runs the step. Defaults to `claude-sonnet-5-5`. Type or pick any model from OpenAI, Anthropic, Google, xAI, Groq, Cerebras, DeepSeek, Azure, AWS Bedrock, Google Vertex, or OpenRouter, or a local or self-hosted model through Ollama, vLLM, or LiteLLM.
3636

3737
For a custom cloud deployment, enter its provider prefix and model ID: `azure/my-deployment`, `azure-anthropic/my-deployment`, `bedrock/my-inference-profile`, or `vertex/my-gemini-model`. The prefix selects the provider and shows its credential fields even when the ID is absent from the catalog. Bedrock accepts full inference profile ARNs after `bedrock/`; Vertex uses the Gemini API and accepts Google model resource names. The deployment must support the selected provider's API. Custom IDs have no catalog pricing or token limits.
3838

‎apps/docs/content/docs/workflows/blocks/router.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pass `<start.input>` as Context, describe Sales, Support, and Billing routes, an
2222
| --- | --- |
2323
| **Context** | Text to analyze, often `<start.input>` or `<agent.content>`. |
2424
| **Routes** | Each route has a title and a description of when to choose it. It adds a separate output port. |
25-
| **Model** | Defaults to `claude-sonnet-5-5`. Select a supported model, including a compatible local Ollama or vLLM model. |
25+
| **Model** | Defaults to `claude-sonnet-5-5`. Select a supported model, including a compatible local Ollama, vLLM, or LiteLLM model. |
2626

2727
Make descriptions specific and distinguishable. For example, “Payments, invoices, and refunds” separates Billing from general product support. Test the routes on representative requests rather than assuming a larger model always routes more accurately.
2828

‎apps/sim/app/(auth)/components/sso-login-button.tsx‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client'
22
import { AuthIcon, AuthButton as Chip } from '@sim/auth-ui'
33
import { useRouter } from 'next/navigation'
4-
import { isSsoEnabled } from '@/lib/core/config/env-flags'
54

65
interface SSOLoginButtonProps {
76
disabled?: boolean
@@ -18,10 +17,6 @@ export function SSOLoginButton({
1817
}: SSOLoginButtonProps) {
1918
const router = useRouter()
2019

21-
if (!isSsoEnabled) {
22-
return null
23-
}
24-
2520
const handleSSOClick = () => {
2621
const ssoUrl = `/sso${callbackURL ? `?callbackUrl=${encodeURIComponent(callbackURL)}` : ''}`
2722
router.push(ssoUrl)

‎apps/sim/app/(auth)/login/login-form.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { useRouter, useSearchParams } from 'next/navigation'
99
import { requestJson } from '@/lib/api/client/request'
1010
import { forgetPasswordContract } from '@/lib/api/contracts'
1111
import { client } from '@/lib/auth/client'
12-
import { isSsoEnabled } from '@/lib/core/config/env-flags'
1312
import { validateCallbackUrl } from '@/lib/core/security/input-validation'
1413
import { getBaseUrl } from '@/lib/core/utils/urls'
1514
import { quickValidateEmail } from '@/lib/messaging/email/validation'
@@ -79,12 +78,15 @@ export default function LoginPage({
7978
googleAvailable,
8079
microsoftAvailable,
8180
emailPasswordEnabled,
81+
ssoEnabled,
8282
}: {
8383
githubAvailable: boolean
8484
googleAvailable: boolean
8585
microsoftAvailable: boolean
8686
/** Whether `REGISTRATION_MODE` leaves email/password and email OTP sign-in on. */
8787
emailPasswordEnabled: boolean
88+
/** Whether SAML/OIDC single sign-on is enabled for this deployment. */
89+
ssoEnabled: boolean
8890
}) {
8991
const router = useRouter()
9092
const searchParams = useSearchParams()
@@ -347,7 +349,6 @@ export default function LoginPage({
347349
}
348350
}
349351

350-
const ssoEnabled = isSsoEnabled
351352
const hasSocial = githubAvailable || googleAvailable || microsoftAvailable
352353
const hasOnlySSO = ssoEnabled && !emailPasswordEnabled && !hasSocial
353354
const showTopSSO = hasOnlySSO

‎apps/sim/app/(auth)/login/page.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Suspense } from 'react'
22
import type { Metadata } from 'next'
3-
import { isEmailPasswordAuthEnabled } from '@/lib/core/config/env-flags'
3+
import { isEmailPasswordAuthEnabled, isSsoEnabled } from '@/lib/core/config/env-flags'
44
import { getOAuthProviderStatus } from '@/app/(auth)/components/oauth-provider-checker'
55
import LoginLoading from '@/app/(auth)/login/loading'
66
import LoginForm from '@/app/(auth)/login/login-form'
@@ -21,6 +21,7 @@ export default async function LoginPage() {
2121
googleAvailable={googleAvailable}
2222
microsoftAvailable={microsoftAvailable}
2323
emailPasswordEnabled={isEmailPasswordAuthEnabled}
24+
ssoEnabled={isSsoEnabled}
2425
/>
2526
</Suspense>
2627
)

‎apps/sim/app/(auth)/signup/page.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import type { Metadata } from 'next'
22
import type { SearchParams } from 'nuqs/server'
3-
import { isEmailSignupAllowed, isSelfServeRegistrationClosed } from '@/lib/core/config/env-flags'
3+
import {
4+
isEmailSignupAllowed,
5+
isSelfServeRegistrationClosed,
6+
isSsoEnabled,
7+
} from '@/lib/core/config/env-flags'
48
import { validateCallbackUrl } from '@/lib/core/security/input-validation'
59
import { isEmailVerificationEffectivelyEnabled } from '@/lib/messaging/email/verification'
610
import { resolveAuthRedirect } from '@/app/(auth)/auth-redirect'
@@ -45,6 +49,7 @@ export default async function SignupPage({
4549
microsoftAvailable={microsoftAvailable}
4650
emailSignupEnabled={isEmailSignupAllowed}
4751
emailVerificationEnabled={isEmailVerificationEffectivelyEnabled()}
52+
ssoEnabled={isSsoEnabled}
4853
/>
4954
)
5055
}

‎apps/sim/app/(auth)/signup/signup-form.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { client, useSession } from '@/lib/auth/client'
1010
import { DISPOSABLE_EMAIL_ERROR_CODE, DISPOSABLE_EMAIL_MESSAGE } from '@/lib/auth/constants'
1111
import { useTrackingConsent } from '@/lib/consent/tracking-consent'
1212
import { getEnv } from '@/lib/core/config/env'
13-
import { isSsoEnabled } from '@/lib/core/config/env-flags'
1413
import { validateCallbackUrl } from '@/lib/core/security/input-validation'
1514
import { quickValidateEmail } from '@/lib/messaging/email/validation'
1615
import { captureEvent } from '@/lib/posthog/client'
@@ -99,6 +98,8 @@ interface SignupFormProps {
9998
emailSignupEnabled: boolean
10099
/** Server-derived: verification is enabled AND a mail provider is configured. */
101100
emailVerificationEnabled: boolean
101+
/** Whether SAML/OIDC single sign-on is enabled for this deployment. */
102+
ssoEnabled: boolean
102103
}
103104

104105
function SignupFormContent({
@@ -107,6 +108,7 @@ function SignupFormContent({
107108
microsoftAvailable,
108109
emailSignupEnabled,
109110
emailVerificationEnabled,
111+
ssoEnabled,
110112
}: SignupFormProps) {
111113
const router = useRouter()
112114
const searchParams = useSearchParams()
@@ -387,7 +389,6 @@ function SignupFormContent({
387389
}
388390
}
389391

390-
const ssoEnabled = isSsoEnabled
391392
const hasSocial = githubAvailable || googleAvailable || microsoftAvailable
392393
const hasOnlySSO = ssoEnabled && !emailSignupEnabled && !hasSocial
393394
const showBottomSection = hasSocial || (ssoEnabled && !hasOnlySSO)
@@ -516,6 +517,7 @@ export default function SignupPage({
516517
microsoftAvailable,
517518
emailSignupEnabled,
518519
emailVerificationEnabled,
520+
ssoEnabled,
519521
}: SignupFormProps) {
520522
return (
521523
<Suspense fallback={<SignupLoading />}>
@@ -525,6 +527,7 @@ export default function SignupPage({
525527
microsoftAvailable={microsoftAvailable}
526528
emailSignupEnabled={emailSignupEnabled}
527529
emailVerificationEnabled={emailVerificationEnabled}
530+
ssoEnabled={ssoEnabled}
528531
/>
529532
</Suspense>
530533
)

‎apps/sim/app/_styles/globals.css‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@
431431
--auth-primary-btn-text: #000000;
432432
--auth-primary-btn-hover-bg: #e0e0e0;
433433
--auth-primary-btn-hover-border: #e0e0e0;
434-
--auth-primary-btn-hover-text: #000000;
435434

436435
/* z-index scale. The toast/notification stack is ambient: it sits above page
437436
content but BELOW the modal and the transient poppers (menus, selects,

‎apps/sim/app/manifest.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { INTEGRATION_COUNT_LABEL } from '@sim/deployment-config/integration-clai
22
import type { MetadataRoute } from 'next'
33
import { WORKSPACES_PATH } from '@/lib/navigation/paths'
44

5-
export const dynamic = 'force-dynamic'
6-
75
export default function manifest(): MetadataRoute.Manifest {
86
return {
97
name: 'Sim — The AI Workspace | Build, Deploy & Manage AI Agents',

0 commit comments

Comments
 (0)