strapi-provider-ai-openai
v0.0.5
Published
- [LICENSE](LICENSE)
Readme
Resources
Links
Installation
# using yarn
yarn add strapi-provider-openai-provider
# using npm
npm install strapi-provider-openai-provider --saveConfiguration
| Variable | Type | Description | Required | Default | | ----------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------- | -------- | --------- | | provider | string | The name of the provider you use | yes | | | providerOptions | object | Provider options | yes | | | providerOptions.apiKey | object | Api key given to the function setApiKey. Please refer to openai | yes | |
Example
Path - config/plugins.js
module.exports = ({ env }) => ({
// ...
ai: {
enabled: true,
config: {
provider: 'ai-openai',
providerOptions: {
apiKey: env('OPENAI_TOKEN'),
},
},
},
// ...
});