Merge branch 'dev' of personal:logspace-ai/langflow into dev

This commit is contained in:
anovazzi1 2023-03-12 23:02:27 -03:00
commit 2e4111c36f

View file

@ -14,6 +14,7 @@ def process_data_graph(data_graph: Dict[str, Any]):
extracted_json = loading.extract_json(data_graph)
message = data_graph["message"]
flow_id = data_graph["id"]
# Process json
result, thought = get_result_and_thought(extracted_json, message)
@ -26,6 +27,7 @@ def process_data_graph(data_graph: Dict[str, Any]):
"thought": re.sub(
r"\x1b\[([0-9,A-Z]{1,2}(;[0-9,A-Z]{1,2})?)?[m|K]", "", thought
).strip(),
"id": flow_id,
}