Skip to content

Commit

Permalink
fix:Agent reactgpt4 or gpt 4o as input model #28747 (#28764)
Browse files Browse the repository at this point in the history
Co-authored-by: ccurme <[email protected]>
  • Loading branch information
Swastik-Swarup-Dash and ccurme authored Dec 17, 2024
1 parent 0c11aee commit 0afc284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/integrations/providers/dataherald.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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?"})
```

Expand Down

0 comments on commit 0afc284

Please sign in to comment.