mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 15:29:13 +08:00
cleanup: remove hacked code
This commit is contained in:
parent
b916b4064a
commit
a0a1243c90
@ -140,17 +140,6 @@ class ToolNode(BaseNode[ToolNodeData]):
|
||||
raise ValueError(f"unknown tool input type '{tool_input.type}'")
|
||||
|
||||
result[parameter_name] = parameter_value
|
||||
# HACK:
|
||||
result["file"] = File(
|
||||
tenant_id="9a80db54-1557-46da-81fe-f0c4fd3df066",
|
||||
type=FileType.IMAGE,
|
||||
transfer_method=FileTransferMethod.TOOL_FILE,
|
||||
remote_url="https://example.com/image.png",
|
||||
related_id="67f4eb5d-3419-4faf-b147-f77d8d69c6b6",
|
||||
filename="image.png",
|
||||
extension=".png",
|
||||
mime_type="image/png",
|
||||
)
|
||||
|
||||
return result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user