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()
|
# # 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)
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue