定制 kanopi/saplings-ai-image-alt-text 二次开发

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

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

kanopi/saplings-ai-image-alt-text

最新稳定版本:1.0.3

Composer 安装命令:

composer require kanopi/saplings-ai-image-alt-text

包简介

Installs and configures image alt text generation tools.

README 文档

README

saplings

Saplings - AI Image Alt Text

Installs and configures image alt text generation tools.

Features

  • Generation of alt text using an AI provider.
  • Adds to all image fields.
  • Incorporates a human-in-the-loop review before saving.
  • Uses the entity’s language to generate alt text in the appropriate language.
  • Includes a bulk tool for generating al text for images that have none.

Installation

composer require kanopi/saplings-ai-image-alt-text
cd web && php core/scripts/drupal recipe ../recipes/saplings-ai-image-alt-text

Configure OpenAI

While the AI module supports many AI services, this recipe is configure to use OpenAI.

  1. Create an API key at https://platform.openai.com
  2. Create a key file at private://keys/openai_provider.key. That is usually at [webroot]/sites/default/files/private/keys/openai_provider.key.
  3. Once you are ready to deploy, be sure to place that key in your cloud environments on the site's host. If you place it in the canonical environment, it will get cloned on subsequent multidev clones.

Usage

To use the configured AI tools, start by clicking the Generate with AI button on any image form.

There is also a bulk edit tool that compiles a list of fields missing alt text and fixes them in bulk. This tool is located at Admin > Configuration > Media.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-02-24