🐛 fix(memories.py): set advanced field to False for input_key and output_key fields

The advanced field was set to True for input_key and output_key fields, which made them appear in the advanced section of the UI. This was not intended, so the advanced field is now set to False for these fields.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-23 09:04:21 -03:00
commit c686ed01ca

View file

@ -60,7 +60,7 @@ class MemoryFrontendNode(FrontendNode):
if field.name in ["input_key", "output_key"]: if field.name in ["input_key", "output_key"]:
field.required = False field.required = False
field.show = True field.show = True
field.advanced = True field.advanced = False
field.value = "" field.value = ""
if field.name == "memory_key": if field.name == "memory_key":
field.value = "chat_history" field.value = "chat_history"