From 668c084520b8215d7137c0cd0c25d9725fc927f2 Mon Sep 17 00:00:00 2001 From: astraszab <40484210+astraszab@users.noreply.github.com> Date: Sun, 20 Jul 2025 18:28:35 +0000 Subject: [PATCH] docs(core): move incorrect arg limitation in rate limiter's docstring (#32118) --- libs/core/langchain_core/rate_limiters.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/core/langchain_core/rate_limiters.py b/libs/core/langchain_core/rate_limiters.py index 952bdaaf8ad..cf5c61d3ea7 100644 --- a/libs/core/langchain_core/rate_limiters.py +++ b/libs/core/langchain_core/rate_limiters.py @@ -146,13 +146,12 @@ class InMemoryRateLimiter(BaseRateLimiter): Args: requests_per_second: The number of tokens to add per second to the bucket. - Must be at least 1. The tokens represent "credit" that can be used - to make requests. + The tokens represent "credit" that can be used to make requests. check_every_n_seconds: check whether the tokens are available every this many seconds. Can be a float to represent fractions of a second. max_bucket_size: The maximum number of tokens that can be in the bucket. - This is used to prevent bursts of requests. + Must be at least 1. Used to prevent bursts of requests. """ # Number of requests that we can make per second. self.requests_per_second = requests_per_second