Generates content using a unified API that automatically detects model capabilities.
Description
When no model is provided, this method delegates to PromptBuilder for intelligent model discovery based on prompt content and configuration. When a model is provided, it infers the capability from the model's interfaces and delegates to the capability-based method.
Signature, return type and hooks compared across 2 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.0.4 tag, from src/wp-includes/php-ai-client/src/AiClient.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.