org.llm4s.error.RateLimitError
See theRateLimitError companion object
final case class RateLimitError extends LLMError, RecoverableError
Raised when the LLM provider rejects the request due to rate limiting.
This is a RecoverableError: it is safe to retry after waiting. The client can handle this automatically when configured with a retry policy. It provides intelligent retry delays, utilizing provider hints when available.
Value parameters
- message
-
human-readable description of the rate limit
- provider
-
the name of the LLM provider (e.g., "openai", "anthropic")
- requestsRemaining
-
optional number of requests remaining in the current window
- resetTime
-
optional timestamp (in milliseconds) when the rate limit will reset
- retryAfter
-
optional delay hint in seconds from the provider (e.g., from Retry-After header)
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait RecoverableErrortrait LLMErrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article