I’ve installed Open Interpreter in a Conda environment and initially had it working as expected. Wanting to streamline the process, I decided to permanently set my OpenAI API key. I used the following command within my activated Conda environment:
setx OPENAI_API_KEY “new_api_key_here”
After running this command, Open Interpreter no longer prompts me for the OpenAI API key, which is good. However, I’ve run into an issue; it doesn’t work anymore. Whenever I try to use the console, I get the following error message:
openai.error.AuthenticationError: Incorrect API key provided: your_api_key. You can find your API key at OpenAI Platform.
Here’s what I’ve tried to resolve the issue so far:
- Rebooting my system.
- Uninstalling and re-installing Open Interpreter.
- Updating the OpenAI API key with the setx command again. It tells me that the environment variable has been updated successfully.
Despite these efforts, the error message remains the same, and I’m unable to use Open Interpreter.
Does anyone have any insights on where i’m being an idiot here? Any help would be greatly appreciated.
Thank you in advance!