Procházet zdrojové kódy

fix: When chatflow's file uploads changed from not being supported to… (#14341)

Co-authored-by: 刘江波 <jiangbo721@163.com>
tags/1.0.1
jiangbo721 před 8 měsíci
rodič
revize
829cd70889
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      api/models/workflow.py

+ 1
- 1
api/models/workflow.py Zobrazit soubor

features["file_upload"]["enabled"] = image_enabled features["file_upload"]["enabled"] = image_enabled
features["file_upload"]["number_limits"] = image_number_limits features["file_upload"]["number_limits"] = image_number_limits
features["file_upload"]["allowed_file_upload_methods"] = image_transfer_methods features["file_upload"]["allowed_file_upload_methods"] = image_transfer_methods
features["file_upload"]["allowed_file_types"] = ["image"]
features["file_upload"]["allowed_file_types"] = features["file_upload"].get("allowed_file_types", ["image"])
features["file_upload"]["allowed_file_extensions"] = [] features["file_upload"]["allowed_file_extensions"] = []
del features["file_upload"]["image"] del features["file_upload"]["image"]
self._features = json.dumps(features) self._features = json.dumps(features)

Načítá se…
Zrušit
Uložit