diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/utils.py b/autogpt_platform/backend/backend/api/features/chat/tools/utils.py index bd25594b8a..690106acf3 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/utils.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/utils.py @@ -128,7 +128,7 @@ def build_missing_credentials_from_graph( return { field_key: _serialize_missing_credential(field_key, field_info) - for field_key, (field_info, _node_fields) in aggregated_fields.items() + for field_key, (field_info, _, _) in aggregated_fields.items() if field_key not in matched_keys } @@ -269,7 +269,8 @@ async def match_user_credentials_to_graph( # provider is in the set of acceptable providers. for credential_field_name, ( credential_requirements, - _node_fields, + _, + _, ) in aggregated_creds.items(): # Find first matching credential by provider, type, and scopes matching_cred = next( diff --git a/autogpt_platform/backend/backend/executor/utils.py b/autogpt_platform/backend/backend/executor/utils.py index fa264c30a7..d26424aefc 100644 --- a/autogpt_platform/backend/backend/executor/utils.py +++ b/autogpt_platform/backend/backend/executor/utils.py @@ -373,7 +373,7 @@ def make_node_credentials_input_map( # Get aggregated credentials fields for the graph graph_cred_inputs = graph.aggregate_credentials_inputs() - for graph_input_name, (_, compatible_node_fields) in graph_cred_inputs.items(): + for graph_input_name, (_, compatible_node_fields, _) in graph_cred_inputs.items(): # Best-effort map: skip missing items if graph_input_name not in graph_credentials_input: continue