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.

535 B
Raw Blame
import type { TFunction } from 'i18next'

export function getAppModeLabel(mode: string, t: TFunction<['app']>): string {
  switch (mode) {
    case 'advanced-chat':
      return t(($) => $['types.advanced'], { ns: 'app' })
    case 'agent-chat':
      return t(($) => $['types.agent'], { ns: 'app' })
    case 'chat':
      return t(($) => $['types.chatbot'], { ns: 'app' })
    case 'completion':
      return t(($) => $['types.completion'], { ns: 'app' })
    default:
      return t(($) => $['types.workflow'], { ns: 'app' })
  }
}