Active
Project:
OpenAI Provider
Version:
1.0.0-beta1
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2024 at 13:24 UTC
Updated:
2 Jan 2025 at 13:18 UTC
Jump to comment: Most recent
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
Comment #2
marcus_johansson commentedAuthentication 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