Gate chat on MULTI_AGENT_CHAT_ENABLED and route to the multi-agent graph when on.

This commit is contained in:
CREDO23 2026-04-30 16:43:31 +02:00
parent 8f8d7540f0
commit c077939522
3 changed files with 73 additions and 28 deletions

View file

@ -399,6 +399,9 @@ class Config:
# Anonymous / no-login mode settings
NOLOGIN_MODE_ENABLED = os.getenv("NOLOGIN_MODE_ENABLED", "FALSE").upper() == "TRUE"
MULTI_AGENT_CHAT_ENABLED = (
os.getenv("MULTI_AGENT_CHAT_ENABLED", "FALSE").upper() == "TRUE"
)
ANON_TOKEN_LIMIT = int(os.getenv("ANON_TOKEN_LIMIT", "500000"))
ANON_TOKEN_WARNING_THRESHOLD = int(
os.getenv("ANON_TOKEN_WARNING_THRESHOLD", "400000")