Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

327 B
Raw Blame
/**
 * Whether a draft message has enough content to submit: non-whitespace text, or at least one
 * attached file. Lets users send a file without typing a placeholder message alongside it.
 */
export const isSubmittableMessage = (text?: string | null, fileCount = 0): boolean =>
  (text ?? '').trim() !== '' || fileCount > 0;