From c9657d51d9d76a665904c759ed166cfd950c18af Mon Sep 17 00:00:00 2001 From: Gabriele Venturi Date: Sun, 14 May 2023 16:43:21 +0200 Subject: [PATCH] docs: add api key in the readme (#122) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f861d997f..6059533fd 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ df = pd.DataFrame({ # Instantiate a LLM from pandasai.llm.openai import OpenAI -llm = OpenAI() +llm = OpenAI(api_token="YOUR_API_TOKEN") pandas_ai = PandasAI(llm, conversational=False) pandas_ai.run(df, prompt='Which are the 5 happiest countries?') @@ -105,7 +105,7 @@ As an alternative, you can also pass the environment variables directly to the c ```python # OpenAI -llm = OpenAI(api_token="YOUR_OPENAI_API_KEY") +llm = OpenAI(api_token="YOUR_API_KEY") # Starcoder llm = Starcoder(api_token="YOUR_HF_API_KEY")