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