Skip to main content

with_limits

Method
This is a method of the ContextBudgeter class in the context module.
Create with custom limits

Signature

def with_limits(model: impl Into<String>, max_tokens: usize, output_reserve: usize) -> Self

Parameters

model
impl Into<String>
required
No description available.
max_tokens
usize
required
No description available.
output_reserve
usize
required
No description available.

Returns

Returns
Self
The result of the operation.