Remove unused function get_new_key()

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-28 14:34:43 -03:00
commit 026b16977a

View file

@ -47,12 +47,3 @@ def build_input_keys_response(langchain_object, artifacts):
input_keys_response["template"] = langchain_object.prompt.template
return input_keys_response
def get_new_key(dictionary, original_key):
counter = 1
new_key = original_key + " (" + str(counter) + ")"
while new_key in dictionary:
counter += 1
new_key = original_key + " (" + str(counter) + ")"
return new_key