digitaldiff / craft-ChatGPT-integration
ChatGPT集成
5.0.3
2024-04-29 07:45 UTC
Requires
- php: >=8.2.0
- craftcms/cms: ^5.0.0
Requires (Dev)
- craftcms/ecs: dev-main
README
该插件为每个文本框、文本区域、Redactor和CKEditor添加下拉菜单。
使用此功能,文本可以自动更正、翻译、缩短和创建。当然,还可以单独添加许多其他功能。几乎没有任何限制。
文本将直接通过ChatGPT发送,并附带相应的命令。命令可以在设置中全局输入。
为了让插件工作,需要一个OpenAI(https://openai.com/)账户,并创建一个API密钥。https://platform.openai.com/account/api-keys
OpenAI可能会有额外的费用。
要求
此插件需要Craft CMS 4.4.3或更高版本,以及PHP 8.0.2或更高版本。
安装
您可以从插件商店或使用Composer安装此插件。
从插件商店
转到项目的控制面板中的插件商店,搜索“ChatGPT-integration”,然后点击“安装”。
使用Composer
打开您的终端,并运行以下命令
# go to the project directory cd /path/to/my-project.test # tell Composer to load the plugin composer require digitaldiff/craft-chatgpt-integration # tell Craft to install the plugin ./craft plugin/install chatgpt-integration