mathstutor / app /core /limiter.py
ghadgemadhuri92's picture
agent tested with the prompt: Calculate 15 * 12 then add 50.
565a379
raw
history blame contribute delete
240 Bytes
from slowapi import Limiter
from slowapi.util import get_remote_address
# Initialize Limiter
# We use the client's IP address (get_remote_address) as the default identifier for rate limiting.
limiter = Limiter(key_func=get_remote_address)