digitaldiff/craft-ChatGPT-integration

ChatGPT集成

安装次数: 3

依赖: 0

建议者: 0

安全: 0

星标: 2

关注者: 1

分支: 0

开放问题: 2

语言:Twig

类型:craft-plugin

5.0.3 2024-04-29 07:45 UTC

This package is auto-updated.

Last update: 2024-09-29 08:42:21 UTC


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