mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 19:29:13 +08:00
fix: tool file id
This commit is contained in:
parent
8c5928da2f
commit
687455ca31
@ -196,6 +196,8 @@ class ToolNode(BaseNode[ToolNodeData]):
|
||||
else:
|
||||
transfer_method = FileTransferMethod.TOOL_FILE
|
||||
|
||||
tool_file_id = str(url).split("/")[-1].split(".")[0]
|
||||
|
||||
with Session(db.engine) as session:
|
||||
stmt = select(ToolFile).where(ToolFile.id == tool_file_id)
|
||||
tool_file = session.scalar(stmt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user