New and updated in 0.2.0
-
Creates a Request instance from a PSR-7 RequestInterface.
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php:365 -
methodRequest::getOptions()
Gets the request options.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php:291 -
methodRequest::withOptions()
Returns a new instance with the specified request options.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php:303 -
classAbstractApiProvider
Base class for API-based providers.
-
Gets the base URL for the provider’s API.
-
Constructs a full URL by combining the base URL with an optional path.
-
classRuntimeException
Exception thrown for runtime errors.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Common/Exception/RuntimeException.php:15 -
Exception thrown when an invalid argument is provided.
Used by 0 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Common/Exception/InvalidArgumentException.php:15 -
Normalizes and validates a preference identifier string.
Used by 1 function | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1265 -
Creates a preference key for a provider/model combination.
Used by 2 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1285 -
Creates a preference key for a model identifier.
Used by 2 functions | Uses 0 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1297 -
Builds a map of candidate models that satisfy the requirements for efficient lookup.
Used by 1 function | Uses 1 function | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1211 -
Generates a candidate map from model metadata with both provider-specific and model-only keys.
Used by 1 function | Uses 2 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:1240 -
Sets preferred models to evaluate in order.
Used by 0 functions | Uses 3 functions | Source: wp-includes/php-ai-client/src/Builders/PromptBuilder.php:256