WordPress\AiClient\Providers\Models\DTO

ModelConfig::setStopSequencespublicWP 0.1.0

Sets the stop sequences.

Method of the class: ModelConfig{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ModelConfig = new ModelConfig();
$ModelConfig->setStopSequences( $stopSequences ): void;
$stopSequences(list) (required)
The stop sequences.

Changelog

Since 0.1.0 Introduced.

ModelConfig::setStopSequences() code WP 7.0

public function setStopSequences(array $stopSequences): void
{
    if (!array_is_list($stopSequences)) {
        throw new InvalidArgumentException('Stop sequences must be a list array.');
    }
    $this->stopSequences = $stopSequences;
}