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.

536 B
Raw Blame
import { useMemo } from 'react'
import { useStore } from '@/app/components/workflow/store'
import { Resolution, TransferMethod } from '@/types/app'

export const useFileSettings = () => {
  const fileUploadConfig = useStore((s) => s.fileUploadConfig)

  return useMemo(() => {
    return {
      image: {
        enabled: false,
        detail: Resolution.high,
        number_limits: 3,
        transfer_methods: [TransferMethod.local_file, TransferMethod.remote_url],
      },
      fileUploadConfig,
    }
  }, [fileUploadConfig])
}