Skip to content
docsv0.42.1

InputBudgetExceededException

A counted effective request cannot leave the caller's declared output reserve.

InputBudgetExceededException::__construct()

public function __construct(int $inputTokens, int $contextTokens, int $outputTokens, string $requestSha256):

The adapter must bind this count to the complete body it would actually dispatch.

Parameters

Parameters of __construct()
NameTypeDescription
$inputTokensint
$contextTokensint
$outputTokensint
$requestSha256string

InputBudgetExceededException::receipt()

public function receipt(): array

Counted input is distinct from the legacy estimate.