mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 14:18:52 +00:00
core[patch]: de-beta rate limiters (#29891)
This commit is contained in:
parent
5637210a20
commit
ffd6194060
@ -10,10 +10,7 @@ from typing import (
|
|||||||
Optional,
|
Optional,
|
||||||
)
|
)
|
||||||
|
|
||||||
from langchain_core._api import beta
|
|
||||||
|
|
||||||
|
|
||||||
@beta(message="Introduced in 0.2.24. API subject to change.")
|
|
||||||
class BaseRateLimiter(abc.ABC):
|
class BaseRateLimiter(abc.ABC):
|
||||||
"""Base class for rate limiters.
|
"""Base class for rate limiters.
|
||||||
|
|
||||||
@ -73,7 +70,6 @@ class BaseRateLimiter(abc.ABC):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@beta(message="Introduced in 0.2.24. API subject to change.")
|
|
||||||
class InMemoryRateLimiter(BaseRateLimiter):
|
class InMemoryRateLimiter(BaseRateLimiter):
|
||||||
"""An in memory rate limiter based on a token bucket algorithm.
|
"""An in memory rate limiter based on a token bucket algorithm.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user