Skip to content

Commit 668c084

Browse files
authored
docs(core): move incorrect arg limitation in rate limiter's docstring (#32118)
1 parent cc076ed commit 668c084

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libs/core/langchain_core/rate_limiters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,12 @@ def __init__(
146146
147147
Args:
148148
requests_per_second: The number of tokens to add per second to the bucket.
149-
Must be at least 1. The tokens represent "credit" that can be used
150-
to make requests.
149+
The tokens represent "credit" that can be used to make requests.
151150
check_every_n_seconds: check whether the tokens are available
152151
every this many seconds. Can be a float to represent
153152
fractions of a second.
154153
max_bucket_size: The maximum number of tokens that can be in the bucket.
155-
This is used to prevent bursts of requests.
154+
Must be at least 1. Used to prevent bursts of requests.
156155
"""
157156
# Number of requests that we can make per second.
158157
self.requests_per_second = requests_per_second

0 commit comments

Comments
 (0)