Where to set API key?
ADevAJ opened this issue · comments
Just Used pipx on Windows 10 to install , was successful , but received error on
export OPENAI_API_KEY="xxx..." (I replaced with my key)
'export' is not recognized as an internal or external command,
operable program or batch file.
When I run elia it opens but any message results in error : "No API key provided."
I am not sure where to put my key. I looked for a json or text file and did not see an obviously named one. Please tell me where to insert! Not a wiz with pipx so I'd prefer a place to just copy/paste it into code.
Idea: perhaps add a textual modal screen within Elia where one can paste the api key?
Very excited to use this!
export OPENAPI_API_KEY=xxxx
is setting an environment variable on Mac/Linux systems. This process works differently on Windows machines. Not being a Windows user myself, I don't exactly know how this works. Try the good old google machine if these steps from ChatGPT don't work:
- Open the Start Menu: Click on the Windows Start button in the bottom-left corner of your screen.
- Search for "Environment Variables": In the search bar, type "Environment Variables" and select "Edit the system environment variables" from the search results.
- Click "Environment Variables": In the "System Properties" window that appears, click the "Environment Variables" button near the bottom right.
- Add a New User Environment Variable:
- In the "User variables" section at the top, click the "New" button.
- In the "Variable name" field, enter the name of your variable, in this case, "OPENAI_API_KEY."
- In the "Variable value" field, enter the API key you want to set, replacing "xxx..." with your actual key.
- Click OK: After entering the variable name and value, click the "OK" button to save the environment variable.
- Close the Windows: Close the "Environment Variables" and "System Properties" windows.
Thank you for the reply and tips! I will try the registry process and write back here with result