Przeglądaj źródła

fix(upload): correct incorrect dictionary key usage (#9563)

tags/0.10.1
-LAN- 1 rok temu
rodzic
commit
faad247d85
No account linked to committer's email address

+ 1
- 1
api/core/app/app_config/features/file_upload/manager.py Wyświetl plik

data = { data = {
"image_config": { "image_config": {
"number_limits": file_upload_dict["number_limits"], "number_limits": file_upload_dict["number_limits"],
"transfer_methods": file_upload_dict["allowed_file_upload_methods"],
"transfer_methods": file_upload_dict["allowed_upload_methods"],
} }
} }



+ 1
- 1
api/core/prompt/utils/prompt_template_parser.py Wyświetl plik

key = match.group(1) key = match.group(1)
value = inputs.get(key, match.group(0)) # return original matched string if key not found value = inputs.get(key, match.group(0)) # return original matched string if key not found


if remove_template_variables:
if remove_template_variables and isinstance(value, str):
return PromptTemplateParser.remove_template_variables(value, self.with_variable_tmpl) return PromptTemplateParser.remove_template_variables(value, self.with_variable_tmpl)
return value return value



Ładowanie…
Anuluj
Zapisz