mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 09:42:40 +02:00
Add a route-level kill switch for streaming orchestrator cutover.
This commit is contained in:
parent
2ec2e82d9d
commit
c0706364d1
3 changed files with 146 additions and 36 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue