Skip to content

Commit

Permalink
fix: allow the remaining limit to have a negative value (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas2D committed Feb 9, 2024
1 parent fa082c6 commit 09c5ecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/genai/_utils/limiters/external_limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

class ConcurrencyResponse(BaseModel):
limit: int = Field(..., ge=1, description="Maximum number of concurrent requests")
remaining: int = Field(..., ge=0, description="Number of remaining requests before reaching the limit")
remaining: int = Field(..., description="Number of remaining requests before reaching the limit")


ExternalLimiterHandler = Callable[[], Awaitable[ConcurrencyResponse]]
Expand Down

0 comments on commit 09c5ecc

Please sign in to comment.