PromptBuilder::usingTopP( float $topP ): self

In this article

Sets the top-p value for generation.

Parameters

$topPfloatrequired
The top-p value.

Return

self

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

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