Sfoglia il codice sorgente

chore: code format model-selector use enum (#22787)

Co-authored-by: 刘江波 <jiangbo721@163.com>
tags/1.7.1
jiangbo721 3 mesi fa
parent
commit
5a02e599e1
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      api/core/workflow/nodes/agent/agent_node.py

+ 1
- 1
api/core/workflow/nodes/agent/agent_node.py Vedi File

@@ -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…
Annulla
Salva