RateLimitConfig

org.llm4s.reliability.RateLimitConfig
See theRateLimitConfig companion object
final case class RateLimitConfig(enabled: Boolean, requestsPerMinute: Int, burstCapacity: Int)

Local token-bucket rate limiting configuration.

Value parameters

burstCapacity

Maximum tokens the bucket can hold, i.e. the largest burst allowed

enabled

Whether local rate limiting is applied

requestsPerMinute

Sustained request rate once the bucket is empty

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Set burst capacity

Set burst capacity

Attributes

def withEnabled(isEnabled: Boolean): RateLimitConfig

Set enabled flag

Set enabled flag

Attributes

Set requests per minute

Set requests per minute

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product