RateLimitOrigin
org.llm4s.error.RateLimitOrigin
enum RateLimitOrigin
Where a RateLimitError originated. Distinguishes a request that never left the process (rejected by a local token bucket) from one the provider itself rejected with an HTTP 429 - the two need different treatment when a caller has already recorded a metrics event for the local case, e.g. org.llm4s.llmconnect.middleware.RateLimitingMiddleware.
Attributes
- Graph
-
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article