How to have jupyter-ai recognize my own OPENAI_API_KEY

Hi,

I’d like to have jupyter-ai recognize my own OPENAI_API_KEY. The ket was set in my user environment already on windows and then when restarting jupyter lab OPENAI models are still not proposed in the drop down lists.

You can define it as env variable

import os

os.environ[“OPENAI_API_KEY”] = “API HERE”

then you can use OpenAI() or any other class from openai or langchain

1 Like

Thank you!
I realize now that The ChatGPT app subscription (ChatGPT Plus) and the OpenAI API are two completely separate products and billing systems.

Which turns this tool more expensive that Google Notebook Gemini assistant right? What’s the advantage then?