Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

398 B
Raw Blame
import { CUSTOM_LLM_ALLOWED_EMAIL_DOMAINS } from '../constants';

/**
 * Checks if the given email is allowed to access custom LLM features.
 * @param email The email address to check.
 * @returns True if the email is allowed, false otherwise.
 */
export function isCustomLLMAllowed(email: string): boolean {
  return CUSTOM_LLM_ALLOWED_EMAIL_DOMAINS.some(domain => email.endsWith(`@${domain}`));
}