From 19197808806e25844acad37b316d34bc0e81de13 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Mon, 10 Mar 2025 11:14:31 +0800 Subject: [PATCH] Refa: reduce default value of MAX_CONCURRENT_CHATS (#5821) ### What problem does this PR solve? #5786 ### Type of change - [x] Refactoring --- graphrag/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphrag/utils.py b/graphrag/utils.py index f469ff046..45cb7c79f 100644 --- a/graphrag/utils.py +++ b/graphrag/utils.py @@ -30,7 +30,7 @@ from rag.utils.redis_conn import REDIS_CONN ErrorHandlerFn = Callable[[BaseException | None, str | None, dict | None], None] -chat_limiter = trio.CapacityLimiter(int(os.environ.get('MAX_CONCURRENT_CHATS', 100))) +chat_limiter = trio.CapacityLimiter(int(os.environ.get('MAX_CONCURRENT_CHATS', 10))) def perform_variable_replacements( input: str, history: list[dict] | None = None, variables: dict | None = None