This repository has been archived on 2024-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
|
import time
|
|
|
|
from llm_server.routes.cache import redis
|
|
|
|
|
|
def recent_prompters_thread():
|
|
five_minutes_ago = time.time() - 5 * 60
|
|
redis.zremrangebyscore('recent_prompters', '-inf', five_minutes_ago)
|
|
time.sleep(1)
|