Sinaptik-AI / pandas-ai

Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.
https://pandas-ai.com
Other
11.71k stars 1.09k forks source link

Agent requires pandasai api key #1073

Closed flashtheman closed 3 months ago

flashtheman commented 3 months ago

System Info

pandasai version: 2.0.26 It seems that there is a requirement of an API key for pandasai, when using Agent. My understanding is that this api key should only be required for enterprise features.

This is the message that appears when using agent without pandasai api key:

  1. Go to https://www.pandabi.ai and sign up
  2. From settings go to API keys and copy
  3. Set environment variable like os.environ['PANDASAI_API_KEY'] = '$2a$10$flb7....'

🐛 Describe the bug

E.g. this line causes the error:

 agent = Agent(path_to_excel)
gDanzel commented 3 months ago

yes it requires API key as using BambooLLM by default.

gventuri commented 3 months ago

@flashtheman you can either follow the instructions to generate a free API key or use your own API key from any LLM (i.e. OpenAI: https://docs.pandas-ai.com/en/latest/LLMs/llms/#openai-models).