New and updated in 0.2.0
-
Gets the provider ID for a registered provider.
Used by 0 functions | Uses 2 functions | Source: wp-includes/php-ai-client/src/Providers/ProviderRegistry.php:163 -
Creates ModelRequirements from prompt data and model configuration.
Used by 2 functions | Uses 4 functions | Source: wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:133 -
Converts ModelConfig to an array of RequiredOptions.
Used by 1 function | Uses 21 functions | Source: wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:194 -
Includes a RequiredOption in the array, ensuring no duplicates based on option name.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:271 -
Checks whether the given model metadata meets these requirements.
Used by 0 functions | Uses 3 functions | Source: wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:92 -
Merges request options with parameter options taking precedence.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:95 -
Determines if the underlying client matches the Guzzle client shape.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:140 -
Sends a request using a Guzzle-compatible client.
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:180 -
Converts request options to a Guzzle-compatible options array.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:197 -
Creates a ResponseException from invalid data in an API response.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ResponseException.php:42 -
classServerException
Exception thrown for 5xx HTTP server errors.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ServerException.php:17 -
Creates a ServerException from a server error response.
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ServerException.php:30 -
methodHttpTransporter::send()
{@inheritDoc}
Used by 0 functions | Uses 6 functions | Source: wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:64 -
Creates a ResponseException for missing expected data.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ResponseException.php:27 -
Creates a ClientException from a client error response (4xx).
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php:52 -
classNetworkException
Exception thrown for network-related errors.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php:17 -
Returns the request that failed as our Request DTO.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php:33 -
Creates a NetworkException from a PSR-18 network exception.
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php:49 -
classRedirectException
Exception thrown for 3xx HTTP redirect responses.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/RedirectException.php:17 -
Creates a RedirectException from a redirect response.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/RedirectException.php:30 -
classClientException
Exception thrown for 4xx HTTP client errors.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php:18 -
Returns the request that failed as our Request DTO.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php:34