PromptBuilder::usingRequestOptions( WordPressAiClientProvidersHttpDTORequestOptions $requestOptions ): self

In this article

Sets the request options for HTTP transport.

Parameters

$requestOptionsWordPressAiClientProvidersHttpDTORequestOptionsrequired
The request options.

Return

self

Source

public function usingRequestOptions(RequestOptions $requestOptions): self
{
    $this->requestOptions = $requestOptions;
    return $this;
}

Changelog

VersionDescription
0.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.