feat: remove verbose from ui

This commit is contained in:
Ibis Prevedello 2023-03-07 14:57:17 -03:00
commit 09f508ed24
2 changed files with 10 additions and 7 deletions

View file

@ -47,10 +47,10 @@ def get_all():
# # utility: templates.utility(utility) for utility in list.list_utilities() # # utility: templates.utility(utility) for utility in list.list_utilities()
# } # }
# }, # },
"memories": { # "memories": {
memory: signature.get_memory(memory) # memory: signature.get_memory(memory)
for memory in list_endpoints.list_memories() # for memory in list_endpoints.list_memories()
}, # },
# "document_loaders": { # "document_loaders": {
# "template": { # "template": {
# # memory: templates.document_loader(memory) # # memory: templates.document_loader(memory)

View file

@ -235,10 +235,13 @@ def format_dict(d):
# Process remaining keys # Process remaining keys
for key, value in d.items(): for key, value in d.items():
if key == "examples":
pass
if key == "_type": if key == "_type":
continue continue
# Set verbose to True
if key == "verbose":
value["default"] = True
_type = value["type"] _type = value["type"]
# Remove 'Optional' wrapper # Remove 'Optional' wrapper
@ -260,7 +263,7 @@ def format_dict(d):
# Show if required # Show if required
value["show"] = bool( value["show"] = bool(
(value["required"] and key not in ["input_variables"]) (value["required"] and key not in ["input_variables", "verbose"])
or key or key
in [ in [
"allowed_tools", "allowed_tools",