WordPress\AiClient\Builders

PromptBuilder::usingTopPpublicWP 0.1.0

Sets the top-p value for generation.

Method of the class: PromptBuilder{}

No Hooks.

Returns

self.

Usage

$PromptBuilder = new PromptBuilder();
$PromptBuilder->usingTopP( $topP ): self;
$topP(float) (required)
The top-p value.

Changelog

Since 0.1.0 Introduced.

PromptBuilder::usingTopP() code WP 7.0

public function usingTopP(float $topP): self
{
    $this->modelConfig->setTopP($topP);
    return $this;
}