Spaces:
Sleeping
Sleeping
| # src/analyzer/chat/run_chat_plus.py | |
| """ | |
| DEPRECATED: This file has been merged into run_chat.py | |
| Migration: | |
| python -m src.analyzer.chat.run_chat_plus --verbose | |
| ↓ | |
| python -m src.analyzer.chat.run_chat --verbose | |
| All features are now available via flags in run_chat.py: | |
| --verbose Show startup diagnostics | |
| --with-memory Enable conversation memory | |
| --extended-tools Force extended tools | |
| --no-llm-routing Disable LLM routing | |
| --limit N Load at most N grants | |
| """ | |
| import warnings | |
| import sys | |
| warnings.warn( | |
| "run_chat_plus.py is deprecated. Use run_chat.py with --verbose flag instead.", | |
| DeprecationWarning, | |
| stacklevel=2 | |
| ) | |
| # Redirect to new unified version | |
| from .run_chat import main | |
| if __name__ == "__main__": | |
| print("⚠️ WARNING: run_chat_plus.py is deprecated") | |
| print(" Use: python -m src.analyzer.chat.run_chat --verbose") | |
| print(" Redirecting to new version...\n") | |
| # Auto-enable verbose mode for backward compatibility | |
| argv = sys.argv[1:] | |
| if "--verbose" not in argv and "-v" not in argv: | |
| argv = ["--verbose"] + argv | |
| main(argv) | |