You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
dlqqq
changed the title
API key is optional but must not be empty
Config UI should allow saving when API key is passed via an environment variable
Nov 2, 2024
@haesleinhuepf The error isn't being produced because "Base API URL" is empty, but rather the "OPENAI_API_KEY" text field listed under the "API Keys" section is empty.
Currently, the chat panel requires that the API key be provided under the "API Keys" section, even if the API key is already specified by an environment variable. If you copy the API key again and paste it into "OPENAI_API_KEY", you will be able to save your changes in the Config UI.
Although the workaround here is simple, this is a valid usability issue that should be addressed. Thank you for reporting this to our team! I've edited the title of this issue accordingly.
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
The text was updated successfully, but these errors were encountered: