Skip to content

Commit

Permalink
docs: add api key in the readme (Sinaptik-AI#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
gventuri committed May 14, 2023
1 parent 4e03507 commit c9657d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?')
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit c9657d5

Please sign in to comment.