//Pass the "temperature" parameter which controls the RANDOMNESS of the model's output. A lower temperature will result in more predictable output, while a higher temperature will result in more random output. The temperature parameter is set between 0 and 1, with 0 being the most predictable and 1 being the most random
const model = new OpenAI({
temperature: 0,
openAIApiKey: process.env.OPENAI_API_KEY,
});
//Create a list of the instatiated tools
const tools = [new SerpAPI(process.env.SERPAPI_API_KEY), new Calculator()];
Don't forget to add your OPENAI_API_KEY and SERPAPI_API_KEY from your .env file