Add a route-level kill switch for streaming orchestrator cutover.

This commit is contained in:
CREDO23 2026-05-07 14:44:36 +02:00
parent 2ec2e82d9d
commit c0706364d1
3 changed files with 146 additions and 36 deletions

View file

@ -490,6 +490,12 @@ class Config:
ENABLE_DESKTOP_LOCAL_FILESYSTEM = (
os.getenv("ENABLE_DESKTOP_LOCAL_FILESYSTEM", "FALSE").upper() == "TRUE"
)
# Streaming entrypoint switch. Keep this at the route layer so orchestrator
# code stays free of legacy fallback branching.
ENABLE_CHAT_STREAM_ORCHESTRATOR = (
os.getenv("SURFSENSE_ENABLE_CHAT_STREAM_ORCHESTRATOR", "TRUE").upper()
== "TRUE"
)
@classmethod
def is_self_hosted(cls) -> bool: