fix: Fix tool mode retrieval in frontend node template update (#5884)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-01-22 23:41:40 -03:00 committed by GitHub
commit 22e24fa718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,7 @@ def update_frontend_node_with_template_values(frontend_node, raw_frontend_node):
# Compute tool modes from template
tool_modes = [
value.get("tool_mode")
for key, value in raw_frontend_node["template"].items()
for key, value in frontend_node["template"].items()
if key != "_type" and isinstance(value, dict)
]