mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-31 00:22:01 +08:00
Refa: reduce default value of MAX_CONCURRENT_CHATS (#5821)
### What problem does this PR solve? #5786 ### Type of change - [x] Refactoring
This commit is contained in:
parent
82f5d901c8
commit
1919780880
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user