RateLimitError

org.llm4s.error.RateLimitError
See theRateLimitError companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(provider: String): RateLimitError

Create basic rate limit error

Create basic rate limit error

Attributes

def apply(provider: String, retryAfter: FiniteDuration): RateLimitError

Create rate limit error with the delay the provider asked for before retrying

Create rate limit error with the delay the provider asked for before retrying

Attributes

def local(provider: String): RateLimitError

Create a rate limit error for a request rejected locally - by ReliableClient's own token bucket - before it ever reached provider. Tagged with RateLimitOrigin.LocalThrottle so that ReliableClient keeps it out of the circuit breaker and does not record its metrics event twice.

Create a rate limit error for a request rejected locally - by ReliableClient's own token bucket - before it ever reached provider. Tagged with RateLimitOrigin.LocalThrottle so that ReliableClient keeps it out of the circuit breaker and does not record its metrics event twice.

Attributes

def unapply(error: RateLimitError): Option[(String, Option[FiniteDuration], String)]

Unapply extractor for pattern matching

Unapply extractor for pattern matching

Attributes

Concrete fields

val DefaultRetryDelay: FiniteDuration

The delay RateLimitError.retryDelay suggests when the provider gave no retryAfter hint.

The delay RateLimitError.retryDelay suggests when the provider gave no retryAfter hint.

Attributes