-
Notifications
You must be signed in to change notification settings - Fork 3
CLI support for image alt text generation #16
Copy link
Copy link
Closed
Labels
command:aiRelated to 'ai' commandRelated to 'ai' commandcommand:ai-generateRelated to 'ai generate' commandRelated to 'ai generate' commandenhancementNew feature or requestNew feature or requestscope:documentationRelated to documentationRelated to documentationscope:testingRelated to testingRelated to testing
Description
Activity
Metadata
Metadata
Assignees
Labels
command:aiRelated to 'ai' commandRelated to 'ai' commandcommand:ai-generateRelated to 'ai generate' commandRelated to 'ai generate' commandenhancementNew feature or requestNew feature or requestscope:documentationRelated to documentationRelated to documentationscope:testingRelated to testingRelated to testing
Summary
Implement WP-CLI command to generate alternative text for image attachments using the WordPress AI Client, following WordPress/ai#44.
What was added
New subcommand under
wp ai generate:Capabilities
_wp_attachment_image_altpost meta--provider,--model,--temperature,--top-p,--top-k,--max-tokens,--system-instructionExample usage
$ wp ai generate alt-text 123 Success: Alt text generated and saved for attachment 123: A WordPress logo on a blue backgroundImplementation
generate_alt_text()private method toAI_Commandclasswith_file()builder method for vision inputRelated
feat/alt-text-generation