mirror of https://github.com/langgenius/dify.git
chore: code format model-selector use enum (#22787)
Co-authored-by: 刘江波 <jiangbo721@163.com>
This commit is contained in:
parent
d1572f47a0
commit
5a02e599e1
|
|
@ -309,7 +309,7 @@ class AgentNode(BaseNode):
|
|||
}
|
||||
)
|
||||
value = tool_value
|
||||
if parameter.type == "model-selector":
|
||||
if parameter.type == AgentStrategyParameter.AgentStrategyParameterType.MODEL_SELECTOR:
|
||||
value = cast(dict[str, Any], value)
|
||||
model_instance, model_schema = self._fetch_model(value)
|
||||
# memory config
|
||||
|
|
|
|||
Loading…
Reference in New Issue