From 42a7daa0bc85056497e11699e5a7909775a4f432 Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Sat, 16 Nov 2024 04:34:26 +0530 Subject: [PATCH] chore: delint --- llm_demo/orchestrator/langgraph/react_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm_demo/orchestrator/langgraph/react_graph.py b/llm_demo/orchestrator/langgraph/react_graph.py index 1412bcbc..3472ee5a 100644 --- a/llm_demo/orchestrator/langgraph/react_graph.py +++ b/llm_demo/orchestrator/langgraph/react_graph.py @@ -100,7 +100,7 @@ async def acall_model(state: UserState, config: RunnableConfig): if "```json" in res.content: try: - response = res.content.replace("```json", "").replace("```", "") + response = str(res.content).replace("```json", "").replace("```", "") json_response = json.loads(response) action = json_response.get("action") action_input = json_response.get("action_input")