gd3kr / BlenderGPT

Use commands in English to control Blender with OpenAI's GPT-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error key

BrechtCorbeel opened this issue · comments

Blender 3.4

Python: Traceback (most recent call last):
  File "C:\Users\brech\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\__init__.py", line 227, in execute
    openai.api_key = get_api_key(context)
  File "C:\Users\brech\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main\__init__.py", line 58, in get_api_key
    addon_prefs = preferences.addons[__name__].preferences
KeyError: 'bpy_prop_collection[key]: key "BlenderGPT-main" not found'

after which typing key in box provides:

No API key detected. Please set the API key in the addon preferences.

also doesn't save key