🔧 chore(utils.py): refactor build_input_keys_response function to return an empty string for each input key
The build_input_keys_response function has been refactored to return an empty string for each input key in the langchain_object. This change ensures consistency in the response structure and provides a default value for each input key.
This commit is contained in:
parent
0c18aab513
commit
5a76d36cd4
1 changed files with 2 additions and 1 deletions
|
|
@ -26,8 +26,9 @@ def remove_api_keys(flow: dict):
|
|||
|
||||
def build_input_keys_response(langchain_object):
|
||||
"""Build the input keys response."""
|
||||
|
||||
input_keys_response = {
|
||||
"input_keys": langchain_object.input_keys,
|
||||
"input_keys": {key: "" for key in langchain_object.input_keys},
|
||||
"memory_keys": [],
|
||||
}
|
||||
# If the object has memory, that memory will have a memory_variables attribute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue