phidata icon indicating copy to clipboard operation
phidata copied to clipboard

Set api key on Windows

Open corzel opened this issue 9 months ago • 3 comments

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 avatar May 03 '24 15:05 corzel

@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.

ysolanky avatar May 03 '24 16:05 ysolanky

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

Photize avatar May 19 '24 19:05 Photize

Or of course GROQ_API_KEY 😉

Photize avatar May 19 '24 19:05 Photize

Closing this issue due to inactivity. Please reopen if not resolved

ysolanky avatar Jul 04 '24 01:07 ysolanky