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.

503 B
Raw Blame
import type { HumanInputFormDefinition, LegacyHumanInputFormData } from './types'

export const normalizeLegacyHumanInputForm = (
  formData: LegacyHumanInputFormData,
): HumanInputFormDefinition => ({
  branding: {
    site: formData.site.site,
    customConfig: formData.site.custom_config,
  },
  formContent: formData.form_content,
  inputs: formData.inputs,
  resolvedDefaultValues: formData.resolved_default_values,
  actions: formData.user_actions,
  expirationTime: formData.expiration_time,
})