Searched refs:tokenLimit (Results 1 – 1 of 1) sorted by relevance
307 … * @param int $tokenLimit The maximum number of tokens to use, negative limit disables this check311 protected function historyMessages(array $history, int $tokenLimit, int $sizeLimit): array argument313 $remainingContext = $tokenLimit;321 if ($tokenLimit > 0 && $length > $remainingContext) {