[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/ -> AbstractOpenAiCompatibleModelMetadataDirectory.php (summary)

Base class for a model metadata directory for providers that implement OpenAI's API format. This abstract class is designed to work with any AI provider that offers an OpenAI-compatible models listing endpoint, including but not limited to Anthropic, Google, and other providers that have adopted OpenAI's models API specification as a standard interface.

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

Defines 2 functions

  sendListModelsRequest()
  throwIfNotSuccessful()

Functions
Functions that are not part of a class:

sendListModelsRequest()   X-Ref
{@inheritDoc}


throwIfNotSuccessful(Response $response)   X-Ref
Throws an exception if the response is not successful.

param: Response $response The HTTP response to check.



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