diff --git a/langflow/backend/endpoints.py b/langflow/backend/endpoints.py index cb4e91935..58a6e5e14 100644 --- a/langflow/backend/endpoints.py +++ b/langflow/backend/endpoints.py @@ -47,10 +47,10 @@ def get_all(): # # utility: templates.utility(utility) for utility in list.list_utilities() # } # }, - "memories": { - memory: signature.get_memory(memory) - for memory in list_endpoints.list_memories() - }, + # "memories": { + # memory: signature.get_memory(memory) + # for memory in list_endpoints.list_memories() + # }, # "document_loaders": { # "template": { # # memory: templates.document_loader(memory) diff --git a/langflow/backend/util.py b/langflow/backend/util.py index 1596adb4a..010c12f68 100644 --- a/langflow/backend/util.py +++ b/langflow/backend/util.py @@ -235,10 +235,13 @@ def format_dict(d): # Process remaining keys for key, value in d.items(): - if key == "examples": - pass if key == "_type": continue + + # Set verbose to True + if key == "verbose": + value["default"] = True + _type = value["type"] # Remove 'Optional' wrapper @@ -260,7 +263,7 @@ def format_dict(d): # Show if required value["show"] = bool( - (value["required"] and key not in ["input_variables"]) + (value["required"] and key not in ["input_variables", "verbose"]) or key in [ "allowed_tools",