|
|
|
@ -127,7 +127,7 @@ load_dotenv()
|
|
|
|
|
|
|
|
|
|
# load API keys; you will need to obtain these if you haven't yet
|
|
|
|
|
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
|
|
|
|
os.environ["SERPAPI_API_KEY"] = os.getenv("SERPAPI_API_KEY")
|
|
|
|
|
os.environ["SERPER_API_KEY"] = os.getenv("SERPER_API_KEY")
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -135,7 +135,7 @@ Now we can configure the LLM, the tools we will use, and the agent that allows u
|
|
|
|
|
|
|
|
|
|
``` python
|
|
|
|
|
llm = OpenAI(model_name="text-davinci-003" ,temperature=0)
|
|
|
|
|
tools = load_tools(["serpapi", "llm-math"], llm=llm)
|
|
|
|
|
tools = load_tools(["google-serper", "llm-math"], llm=llm)
|
|
|
|
|
agent = initialize_agent(tools, llm, agent="zero-shot-react-description", verbose=True)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|