WordPress\AiClient\Builders
PromptBuilder::usingTopP
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() PromptBuilder::usingTopP code WP 7.0
public function usingTopP(float $topP): self
{
$this->modelConfig->setTopP($topP);
return $this;
}