This package leverages the IOM_newsAPI_query package and as such will need a news api key (ENV["NEWSAPIKEY"]="SecretKey").
This package also uses the openAI API and will need a key (ENV["OPENAI_API_KEY"]="AnotherSecret")
using AnomalyExplainer
using Dates
ENV["NEWSAPIKEY"]="SecretKey"
ENV["OPENAI_API_KEY"]="AnotherSecret"
explain_anomaly("There has been a recent spike in google share price. Does this article mention anything that could have affected the shock price of google? Begin the answer with a 'Yes' or a 'no'.", ["google"], (today()-Day(3), today()))