WordPress\AiClient\Builders
PromptBuilder::isSupportedForImageGeneration
Checks if the prompt is supported for image generation.
Method of the class: PromptBuilder{}
No Hooks.
Returns
true|false. True if image generation is supported.
Usage
$PromptBuilder = new PromptBuilder(); $PromptBuilder->isSupportedForImageGeneration(): bool;
Changelog
| Since 0.1.0 | Introduced. |
PromptBuilder::isSupportedForImageGeneration() PromptBuilder::isSupportedForImageGeneration code WP 7.0
public function isSupportedForImageGeneration(): bool
{
return $this->isSupported(CapabilityEnum::imageGeneration());
}