[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/ApiBasedImplementation/ -> AbstractApiBasedModel.php (summary)

Base class for an API-based model for a provider. While this class contains no abstract methods, it is still abstract to ensure that each model class can actually perform generative AI tasks by implementing the corresponding interfaces.

File Size: 111 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  __construct()
  metadata()
  providerMetadata()
  setConfig()
  getConfig()
  setRequestOptions()
  getRequestOptions()

Functions
Functions that are not part of a class:

__construct(ModelMetadata $metadata, ProviderMetadata $providerMetadata)   X-Ref
Constructor.

param: ModelMetadata $metadata The metadata for the model.
param: ProviderMetadata $providerMetadata The metadata for the model's provider.

metadata()   X-Ref
{@inheritDoc}


providerMetadata()   X-Ref
{@inheritDoc}


setConfig(ModelConfig $config)   X-Ref
{@inheritDoc}


getConfig()   X-Ref
{@inheritDoc}


setRequestOptions(RequestOptions $requestOptions)   X-Ref
{@inheritDoc}


getRequestOptions()   X-Ref
{@inheritDoc}




Generated : Sat Jun 13 09:38:55 2026 Cross-referenced by PHPXref