定制 bitdigitalcodes/statamic-chatgpt 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitdigitalcodes/statamic-chatgpt

Composer 安装命令:

composer require bitdigitalcodes/statamic-chatgpt

包简介

README 文档

README

Statamic ChatGPT is a Statamic addon that allows you to generate content from ChatGPT from within the Bard editor from a prompt.

Features

Some headline features:

  • Generate a complete article from a single prompt
  • Generate shorter single paragraphs for when you need help with a portion of an article
  • Supports GPT5, GPT5-Mini, GPT5-Nano, GPT4o, GPT4o-Mini, ChatGPT 3.5-turbo, and ChatGPT 4
  • Will support future versions when they become available
  • Add site-wide context to your prompts to get more tailored responses (for example, configure ChatGPT to think it is an expert on writing SEO-optimised articles about gardening, if that's your thing)
  • Configure the maximum number of tokens to be used with each prompt in order to manage your spend
  • Manage your API key and various options from within the dashboard

Settings

Screenshot

Icon added to Bard editor

Screenshot

Modal allows you to generate a full article or just a paragraph

Screenshot

Fully formatted article is added to Bard, ready for you to use or edit

Screenshot

Also generate a single paragraph

Screenshot

How to Install

You can search for this addon in the Tools > Addons section of the Statamic control panel and click install, or run the following command from your project root:

composer require bitdigitalcodes/statamic-chatgpt

You will need to add your API key before the addon will work.

How to Use

  1. Once installed you should see a new 'ChatGPT' menu option on the left of the control panel. Click it.
  2. Enter your API key (https://platform.openai.com/signup if you don't have one already).
  3. Select the model to use. Some of the later models may need to make a payment to get access.
  4. Select the max tokens, or use defaults.
  5. Give ChatGPT a bit of context about your site and the text you want it to write.
  6. Save the config.
  7. You'll now get a ChatGPT icon on any Bard editor. Click this for access to all features.

Troubleshooting

I'm getting an error mentioning my API key.

You probably haven't set up your API key properly in the control panel. Head to https://platform.openai.com/signup, get an API key, and carefully copy it across. You may also be using an API key that doesn't support the model you want to use, in which case try selecting a different model.

You may need to make a payment before some of the models will work. OpenAI removed the need to do this but there have been some user-land reports of still needing to do it.

Ensure your API key is valid for the models you want to use and you have sufficient credit.

After about 2 minutes I get a message about the API timing out.

ChatGPT takes time to generate a response. We wait 2 minutes before giving up, this is usually plenty of time to get the response but if the API is under extreme load or is down then you may need to try again. If it persists check OpenAI status: https://status.openai.com/

I'm getting an [Object object] error pop-up when using.

Please let us know what steps you took for this to happen. We handle all errors gracefully, and any that are introduced by the API should be displayed to you. If you're getting this error then it's likely something we haven't accounted for. Please raise an issue on Github and we'll look into it.

bitdigitalcodes/statamic-chatgpt 适用场景与选型建议

bitdigitalcodes/statamic-chatgpt 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.58k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2023 年 07 月 13 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 bitdigitalcodes/statamic-chatgpt 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 bitdigitalcodes/statamic-chatgpt 我们能提供哪些服务?
定制开发 / 二次开发

基于 bitdigitalcodes/statamic-chatgpt 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-07-13