jupyter-ai
jupyter-ai copied to clipboard
Config UI should allow saving when API key is passed via an environment variable
trafficstars
Description
I'm trying to use OpenAI GPT4 and struggle a bit with configuration. I'm using openai and have an environment variable configured. Hence, I do not need to configure my API key in Jupyter AI. It should work without.
Reproduce
The configuration dialog says the API key is optional, but there is an error message saying I must enter it.
Expected behavior
Make the API key optional, and remove the error message.
Context
- Operating System and version: Windows 10
- Browser and version:
- JupyterLab version: Version 4.2.5