Download the PHP package raduhoria/openai-textgenerator-field without Composer
On this page you can find all versions of the php package raduhoria/openai-textgenerator-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package openai-textgenerator-field
Kirby CMS – OpenAI generated article text
Generate text for Kirby CMS (https://getkirby.com/) articles with OpenAI APIs (field & block item).
Features:
- Enable the OpenAI API call to retrieve generated text using
text-davinci-003
model - Custom field with prompt (questions)
- Block item that reuse the custom field
- Saving the prompts (questions) for reuse its
Overview
This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider to ❤️ sponsor me for securing the continued development of the plugin.
1. Installation
This version of the plugin requires PHP 7.4 and Kirby 3.6.0 or higher. The recommended way of installing is by using Composer:
Alternatively, download and copy this repository to /site/plugins/openai-textgenerator-field
2. Settings
Please consult the link for getting API key: https://beta.openai.com/account/api-keys
Please consult the link for getting Organization ID: https://beta.openai.com/account/org-settings
Just edit file:
and add the block:
Please consult the link for understand the temperature
variable in completions API: https://beta.openai.com/docs/api-reference/completions/create#completions/create-temperature
Prerequisites
If you're testing locally, the plugin is using php curl function. You need to ensure that cacert.pem certificate is installed.
- Download the latest cacert.pem from https://curl.se/ca/cacert.pem
- Add the following line to php.ini:
(if this is shared hosting and you don't have access to php.ini then you could add this to .user.ini in public_html).
3. Setup
This field can be used in blocks fieldsets - aitext
option or like a field type openaitextgeneratorfield
: