The section 'Post-Installation' states:

"Set up an API key using the Key module with your OpenAI credentials."

Nevertheless, on admin/config/system/keys/add there is a section 'Type settings'

- Key type (4 types)
- Provider settings
- etc.

What to set there?

I also had to clear the cache before my key showed up on admin/config/ai/providers/openai

Proposed text

"Set up an API key using the Key module with your OpenAI credentials. Under 'Key type', choose 'Authentication'. Under 'Key provider' choose 'Configuration'. Clear the cache."

Comments

koosvdkolk created an issue.

marcus_johansson’s picture

Authentication is really not the best way of storing the key, just the easiest. If you are working with repos and you don't ignore that configuration, your API Key is stored in the repo which is really bad practice.

Instead people will have to read up on how the Key module works and what to store there. If you need a simple way of setting this up for customers, this module eixst: https://www.drupal.org/project/ai_simple_provider_installer