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()
# }
# },
"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)

View file

@ -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",