ModelConfig::setStopSequences( WordPressAiClientProvidersModelsDTOlist $stopSequences )

In this article

Sets the stop sequences.

Parameters

$stopSequences<span class="WordPressAiClientProvidersModelsDTOlist”>WordPressAiClientProvidersModelsDTOlistrequired
The stop sequences.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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