getImplementationClass(). */ namespace AzureAiFoundry\Http; use WordPress\AiClient\Providers\Http\DTO\ApiKeyRequestAuthentication; use WordPress\AiClient\Providers\Http\DTO\Request; class AzureAiFoundryRequestAuthentication extends ApiKeyRequestAuthentication { /** * Authenticate the request with the Azure `api-key` header. * * @param Request $request The outgoing request. * @return Request The request with authentication header added. */ public function authenticateRequest( Request $request ): Request { return $request->withHeader( 'api-key', $this->getApiKey() ); } }