mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:39:01 +08:00
fix/dataset-retriever-tool-parameter-redundancy (#3418)
This commit is contained in:
parent
1c56b48238
commit
25dea232d6
@ -38,7 +38,7 @@ class ToolEngine:
|
|||||||
if isinstance(tool_parameters, str):
|
if isinstance(tool_parameters, str):
|
||||||
# check if this tool has only one parameter
|
# check if this tool has only one parameter
|
||||||
parameters = [
|
parameters = [
|
||||||
parameter for parameter in tool.parameters
|
parameter for parameter in tool.get_runtime_parameters()
|
||||||
if parameter.form == ToolParameter.ToolParameterForm.LLM
|
if parameter.form == ToolParameter.ToolParameterForm.LLM
|
||||||
]
|
]
|
||||||
if parameters and len(parameters) == 1:
|
if parameters and len(parameters) == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user