gd3kr / BlenderGPT

Use commands in English to control Blender with OpenAI's GPT-4
MIT License
4.39k stars 314 forks source link

Where to input OpenAI API Key? #1

Closed enzyme69 closed 1 year ago

enzyme69 commented 1 year ago

Where do we actually set as an environment variable OPENAI_API_KEY? Would be nice if the option is in the addon setting.

enzyme69 commented 1 year ago

I tried adding the OPENAI_API_KEY into that line but still failing to work: Screenshot 2023-03-22 at 10 52 02 am

Shraknard commented 1 year ago

Where do we actually set as an environment variable OPENAI_API_KEY? Would be nice if the option is in the addon setting.

On Windows you can add an environment variable with this command : [Environment]::SetEnvironmentVariable('OPENAI_API_KEY','your key here')

Then you can check the value of your variable using : [Environment]::GetEnvironmentVariable('OPENAI_API_KEY')

You'll need to run this in an admin powershell window.

gd3kr commented 1 year ago

Fixed in the latest release. Now you can set the OpenAI API key directly in the UI under the addon preferences! sc

enzyme69 commented 1 year ago

Thanks I will give it a try