mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix CI
This commit is contained in:
parent
ad00cc8ca1
commit
074746cfd2
|
@ -224,9 +224,7 @@ class ToolManager:
|
|||
options = [x.value for x in parameter_rule.options]
|
||||
for value in parameter_value:
|
||||
if value not in options:
|
||||
raise ValueError(
|
||||
f"tool parameter {parameter_rule.name} value {value} not in options {options}"
|
||||
)
|
||||
raise ValueError(f"tool parameter {parameter_rule.name} value {value} not in options {options}")
|
||||
|
||||
return parameter_rule.type.cast_value(parameter_value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user