Binds configured request options to the model if present and supported.
Description
Request options are only applicable to API-based models that make HTTP requests.
Parameters
$modelWordPressAiClientProvidersModelsContractsModelInterfacerequired- The model to bind request options to.
Source
private function bindModelRequestOptions(ModelInterface $model): void
{
if ($this->requestOptions !== null && $model instanceof ApiBasedModelInterface) {
$model->setRequestOptions($this->requestOptions);
}
}
Changelog
| Version | Description |
|---|---|
| 0.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.