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

Make openai as optional dependency #1371

Open
andeplane opened this issue Sep 25, 2024 · 0 comments
Open

Make openai as optional dependency #1371

andeplane opened this issue Sep 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andeplane
Copy link
Contributor

andeplane commented Sep 25, 2024

🚀 The feature

We are using JupyterLite, a Pyodide based Jupyter notebook that runs entirely in the browser. Due to various reasons, the OpenAI package doesn't work in this environment. It would be great if we can install and import pandasai without this as a required dependency, by providing another type of LLM instead.

google-generativeai is already optional, so a similar pattern should be doable with OpenAI.

Motivation, pitch

This could enable PandasAI to be run in browser based Python environments.

Alternatives

Hot patch PandasAI / OpenAI.

Additional context

No response

@dosubot dosubot bot added the enhancement New feature or request label Sep 25, 2024
@andeplane andeplane changed the title Remove OpenAI as required dependency Make openai as optional dependency Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant