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.

228 B
Raw Blame
export function maskApiKey(token: string) {
  // Knowledge API list responses are already masked by the server.
  if (token.includes('...') || token === '***') return token
  return `${token.slice(0, 5)}...${token.slice(-4)}`
}