refac: reformat
This commit is contained in:
parent
6e3f8a89b4
commit
b4a5bdaa62
1 changed files with 1 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
import contextlib
|
import contextlib
|
||||||
import io
|
import io
|
||||||
import re
|
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
from langflow.cache.utils import compute_hash, load_cache, save_cache
|
from langflow.cache.utils import compute_hash, load_cache, save_cache
|
||||||
|
|
@ -64,10 +63,7 @@ def process_graph(data_graph: Dict[str, Any]):
|
||||||
logger.debug("Saving langchain object to cache")
|
logger.debug("Saving langchain object to cache")
|
||||||
save_cache(computed_hash, langchain_object, is_first_message)
|
save_cache(computed_hash, langchain_object, is_first_message)
|
||||||
logger.debug("Saved langchain object to cache")
|
logger.debug("Saved langchain object to cache")
|
||||||
return {
|
return {"result": str(result), "thought": thought.strip()}
|
||||||
"result": str(result),
|
|
||||||
"thought": thought.strip()
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def get_result_and_thought_using_graph(loaded_langchain, message: str):
|
def get_result_and_thought_using_graph(loaded_langchain, message: str):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue