Browse Source

Fix: legacy image upload compatible (#10803)

tags/0.11.2
KVOJJJin 11 months ago
parent
commit
3e2b8a8d02
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      web/app/components/share/text-generation/index.tsx

+ 4
- 1
web/app/components/share/text-generation/index.tsx View File



const { user_input_form, more_like_this, file_upload, text_to_speech }: any = appParams const { user_input_form, more_like_this, file_upload, text_to_speech }: any = appParams
setVisionConfig({ 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, image_file_size_limit: appParams?.system_parameters?.image_file_size_limit,
fileUploadConfig: appParams?.system_parameters, fileUploadConfig: appParams?.system_parameters,
}) })

Loading…
Cancel
Save