Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache is getting initialised even when we pass enable_cache as false to pai.config #1621

Open
shamith-atomicwork opened this issue Feb 17, 2025 · 0 comments

Comments

@shamith-atomicwork
Copy link

System Info

Name: pandasai
Version: 3.0.0b11

Python 3.11

Mac OS 15.1 64GB

🐛 Describe the bug

While trying to use pandasai chat I was initializing the config with

   ```
    import pandasai as pai
    from pandasai_openai import OpenAI
    import pandas as pd
    import os

    llm = AzureOpenAI(
        api_key=OPENAI_API_KEY,
        deployment_name=DEPLOYMENT_NAME_GPT4_OMNI,
        azure_endpoint=AZURE_OPENAI_BASE_URL,
        api_version=AZURE_OPENAI_API_VERSION,
    )
    pai.config.set({"llm": llm, "enable_cache": False})
  ```

It is still creating the cache file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant