Update file path key in tweaks dictionary for LangflowFileService to enhance clarity

This commit modifies the key for file paths in the tweaks dictionary from "file_path" to "path" within the LangflowFileService class. This change improves code clarity and consistency, aligning with best practices for robust async development while maintaining existing functionality.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-09-08 22:02:12 -03:00
parent acdfd3c8ca
commit 86709db984

View file

@ -82,7 +82,7 @@ class LangflowFileService:
# Pass files via tweaks to File component (File-PSU37 from the flow)
if file_paths:
tweaks["File-PSU37"] = {"file_path": file_paths}
tweaks["File-PSU37"] = {"path": file_paths}
# Pass JWT token via tweaks using the x-langflow-global-var- pattern
if jwt_token: