🐛 fix(manager.py): fix incorrect assignment of langchain_object.result to result_dict["result"] to store the entire langchain_object instead

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-16 15:40:14 -03:00
commit 49729263ef

View file

@ -176,7 +176,7 @@ class ChatManager(Service):
# so we need to change it to something else
result_dict = {
"result": langchain_object.result,
"result": langchain_object,
"type": type(langchain_object),
}
self.cache_manager.upsert(client_id, result_dict)