瀏覽代碼

Fix: legacy image upload compatible (#10803)

tags/0.11.2
KVOJJJin 11 月之前
父節點
當前提交
3e2b8a8d02
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      web/app/components/share/text-generation/index.tsx

+ 4
- 1
web/app/components/share/text-generation/index.tsx 查看文件

@@ -389,7 +389,10 @@ const TextGeneration: FC<IMainProps> = ({

const { user_input_form, more_like_this, file_upload, text_to_speech }: any = appParams
setVisionConfig({
...file_upload.image,
// legacy of image upload compatible
...file_upload,
transfer_methods: file_upload.allowed_upload_methods,
// legacy of image upload compatible
image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
fileUploadConfig: appParams?.system_parameters,
})

Loading…
取消
儲存