New and updated in 0.4.0
-
Checks if the given value is a registered provider class name.
Used by 4 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/ProviderRegistry.php:488 -
Checks if the given value is a registered provider ID.
Used by 4 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/ProviderRegistry.php:500 -
Validates that the given media orientation and aspect ratio values do not conflict with each other.
Used by 2 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php:650 -
Enum for request authentication methods.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php:18 -
Gets the implementation class for the authentication method.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php:33 -
Gets the model that will process the prompt.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/BeforeGenerateResultEvent.php:65 -
Gets the capability being used for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/BeforeGenerateResultEvent.php:76 -
Gets the model that processed the prompt.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:71 -
Gets the capability that was used for generation.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:82 -
Gets the result from the model.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:93 -
Event dispatched before a prompt is sent to the AI model.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/BeforeGenerateResultEvent.php:18 -
Constructor.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/BeforeGenerateResultEvent.php:41 -
Gets the messages to be sent to the model.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/BeforeGenerateResultEvent.php:54 -
Constructor.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:46 -
Gets the messages that were sent to the model.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:60 -
Event dispatched after a prompt has been sent to the AI model and a response received.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Events/AfterGenerateResultEvent.php:18 -
Dispatches an event if an event dispatcher is registered.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1460 -
Executes the model generation based on capability.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:849 -
Sets the event dispatcher for prompt lifecycle events.
-
Gets the event dispatcher for prompt lifecycle events.
-
methodAiClient::setCache()
Sets the PSR-16 cache for storing and retrieving cached data.
-
methodAiClient::getCache()
Gets the PSR-16 cache instance.