cubex-hro/contao-openai-bundle
Composer 安装命令:
composer require cubex-hro/contao-openai-bundle
包简介
enables the generation of meta-title and meta-descriptions in the backend of Contao using ChatGPT from OpenAi
README 文档
README
The purpose of this extension is to quickly and easily generate meta descriptions and titles from page content using ChatGPT (OpenAI).
Below we have summarized a few best practices to achieve relatively good results. Additional features are planned in the future that will make the expansion even better.
Getting started
composer require cubex-hro/contao-openai-bundle
Compability
| Contao Version | PHP Version |
|---|---|
| >= 4.9 | ^7.0 ǀǀ ^8.0 |
Important note
- An OpenAI developer account is required. Sign up here.
- The required token is also created there.
- There is a fee to use the OpenAI API. An overview of OpenAI pricing can be found here: https://openai.com/pricing
- We tested a lot and so far we haven't gotten more than $5 a month
TinyMCE Plugin notes
Please make sure you don't have a custom be_tinyMCE.html5 template. If so, take a look at src/Resources/contao/templates/be_tinyMCE.html5 and adjust the relevant places manually.
Screenshots
Best practise
- define usage limit in OpenAPI API Backend to have control over costs
How to use
- Insert token
- Choose GPT model
- Insert preferred Meta-title prompt (e.g. Schreibe für folgenden Text einen prägnanten Seitentitel bestehend aus 5 bis 6 Wörtern:)
- Insert preferred Meta-description prompt (e.g. Schreibe für folgenden Text eine informative/emphatische/ansprechende Seitenbeschreibung, die weniger als 160 Zeichen inklusive Leerzeichen enthält:)
- Set temperature (recommended: 0.5)
- Set max_tokens (recommended: 300)
- Set optional settings like hidden elements and custom fields
- Go to page settings and use the buttons below SERP preview
- Enjoy the magic :)
To-Do
- Integrate token calculator (e.g. GPT-3-Encoder-PHP)
- Content weighting through ChatGPT as pre-fetch event
- Define personality profile (role) for Chat completions API model
- Considerations and testing for the actual maximum character length for the request
- Considerations on how serialized content will be handled in the future
- Make costs per Request more transparent (show used tokens and calculate with OpenAI pricing)
- do
- some
- magic🪄
new Features
- v0.2.0 -> TinyMCE AI-Text generation Dialog
- v1.0.0 -> add Contao 5 compatibility
- v1.1.0 -> Contao Backend Help Bot powered by CustomGPT
Support
Contao Gpt Bundle is a project for the community. If you have suggestions for improvements or comments, use the issues or, best of all, make a pull request.
cubex-hro/contao-openai-bundle 适用场景与选型建议
cubex-hro/contao-openai-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 200 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 02 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「seo」 「contao」 「ai」 「gpt」 「KI」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cubex-hro/contao-openai-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cubex-hro/contao-openai-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cubex-hro/contao-openai-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Contao Open Source CMS
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
PHP 8.0+ OpenAI API client with fully typed/documented requests+responses models, guzzle and symfony/http-client support and async/parallel requests.
Help to manage meta data on Laravel Eloquent model
Statamic Fine Seo addon
AI-powered helper for PHP errors, warnings and exceptions: practical, context-aware explanations and suggestions via local or API LLMs.
统计信息
- 总下载量: 200
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-13


