演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。 Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
536 B
TypeScript
20 lines
536 B
TypeScript
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])
|
|
}
|