WordPress\AiClient\Builders
PromptBuilder::usingTopP
Sets the top-p value for generation.
Метод класса: PromptBuilder{}
Хуков нет.
Возвращает
self.
Использование
$PromptBuilder = new PromptBuilder(); $PromptBuilder->usingTopP( $topP ): self;
- $topP(float) (обязательный)
- The top-p value.
Список изменений
| С версии 0.1.0 | Введена. |
Код PromptBuilder::usingTopP() PromptBuilder::usingTopP WP 7.1.2
public function usingTopP(float $topP): self
{
$this->modelConfig->setTopP($topP);
return $this;
}