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:
parent
acdfd3c8ca
commit
86709db984
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue