feat: remove verbose from ui
This commit is contained in:
parent
6c53c9c30e
commit
09f508ed24
2 changed files with 10 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue