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.
2023-09-27 23:36:44 -06:00
|
|
|
import time
|
|
|
|
|
2023-10-27 19:19:22 -06:00
|
|
|
from llm_server.custom_redis import redis
|
2023-09-27 23:36:44 -06:00
|
|
|
|
|
|
|
|
|
|
|
def recent_prompters_thread():
|
2023-09-28 03:44:30 -06:00
|
|
|
five_minutes_ago = time.time() - 5 * 60
|
|
|
|
redis.zremrangebyscore('recent_prompters', '-inf', five_minutes_ago)
|
2023-09-27 23:36:44 -06:00
|
|
|
time.sleep(1)
|