phidata
phidata copied to clipboard
Set api key on Windows
Hi guys!
Is there a way to set the API key without using the 'export' command because on Windows it doesn't work.
Regards!
@corzel on windows if you are using Powershell, checkout the docs here to export an environment variable Basically, $Env:API_KEY = "api_key"
You could also use set, setx or add the environmental variable permanently in the settings.
If power shell doesn't work On Windows:
Use the search bar in the Start menu to find “Edit the system environment variables”.
Click “Environment variables”
Use the upper “New…” button to add a User variable
Create a new variable called OPENAI_API_KEY and set the value to the secret key you got from your account settings on openai.com
Or of course GROQ_API_KEY 😉
Closing this issue due to inactivity. Please reopen if not resolved