From 0afc28492063bb79637f05da4cccf7c8d2ed320d Mon Sep 17 00:00:00 2001 From: Swastik-Swarup-Dash <143310346+Swastik-Swarup-Dash@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:05:09 +0530 Subject: [PATCH] fix:Agent reactgpt4 or gpt 4o as input model #28747 (#28764) Co-authored-by: ccurme --- docs/docs/integrations/providers/dataherald.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/integrations/providers/dataherald.mdx b/docs/docs/integrations/providers/dataherald.mdx index 9b589f6ae6cd3..2b1c276df526b 100644 --- a/docs/docs/integrations/providers/dataherald.mdx +++ b/docs/docs/integrations/providers/dataherald.mdx @@ -41,7 +41,7 @@ tool = DataheraldTextToSQL(api_wrapper=api_wrapper) llm = ChatOpenAI(model="gpt-3.5-turbo", temperature=0) prompt = hub.pull("hwchase17/react") agent = create_react_agent(llm, tools, prompt) -agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True) +agent_executor = AgentExecutor(agent=agent, tools=tools, verbose=True, handle_parsing_errors=True) agent_executor.invoke({"input":"Return the sql for this question: How many employees are in the company?"}) ```