WordPress\AiClient\Results\DTO

TokenUsage::getThoughtTokens │ public │ WP 1.3.0

Gets the number of thought tokens, which is a subset of the completion token count.

Метод класса: TokenUsage{}

Хуков нет.

Возвращает

int|null. The thought token count or null if not available.

Использование

$TokenUsage = new TokenUsage();
$TokenUsage->getThoughtTokens(): ?int;

Список изменений

С версии 1.3.0 Введена.

Код TokenUsage::getThoughtTokens() WP 7.1.4

public function getThoughtTokens(): ?int
{
    return $this->thoughtTokens;
}