PromptBuilder::bindModelRequestOptions( WordPressAiClientProvidersModelsContractsModelInterface $model ): void

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

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.

Return

void

Source

private function bindModelRequestOptions(ModelInterface $model): void
{
    if ($this->requestOptions !== null && $model instanceof ApiBasedModelInterface) {
        $model->setRequestOptions($this->requestOptions);
    }
}

Changelog

VersionDescription
0.3.0Introduced.

User Contributed Notes

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