Allow remote detect in production until local Ollama is connected.
Keep KANSHO_ENV=production and require an explicit operator flag instead of treating Prod as Development. Promote to Prod only via merge commit on main. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
dd7858347c
commit
af6fe55577
23 files changed
+236
-27
No files matched your search
@@ -251,7 +251,7 @@ def reset_detect_test_hooks() -> None:
|
||||
|
||||
|
||||
def uses_llm_detect(config) -> bool:
|
||||
"""Local detect stays a provider role. Remote plaintext detect is development/test only."""
|
||||
"""Local detect stays a provider role. Remote plaintext detect needs an explicit allow."""
|
||||
if not config or config.mode != "http":
|
||||
return False
|
||||
if config.local:
|
||||
|
||||
Reference in new issue
Block a user