Skip to content

Commit

Permalink
Fix: legacy image upload compatible (#10803)
Browse files Browse the repository at this point in the history
  • Loading branch information
JzoNgKVO authored Nov 18, 2024
1 parent 9861279 commit 3e2b8a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/app/components/share/text-generation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit 3e2b8a8

Please sign in to comment.