Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

501 B
Raw Blame
import type { BrandingModel } from '@dify/contracts/api/console/system-features/types.gen'

const DEFAULT_APPLICATION_TITLE = 'Dify'

export const getApplicationTitle = (
  branding?: Pick<BrandingModel, 'application_title' | 'enabled'>,
) =>
  branding?.enabled && branding.application_title
    ? branding.application_title
    : DEFAULT_APPLICATION_TITLE

export const formatDocumentTitle = (title: string, applicationTitle: string) =>
  title ? `${title} - ${applicationTitle}` : applicationTitle