diff options
Diffstat (limited to 'assistant.py')
| -rw-r--r-- | assistant.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/assistant.py b/assistant.py index 9004243..e2b576d 100644 --- a/assistant.py +++ b/assistant.py @@ -18,7 +18,8 @@ model answers with tools, replies stream back on the same socket, and every finished turn is kept in a SQLite history with full-text search. -Run: python3 assistant.py (--test runs the self-check) +Run: python3 assistant.py (--test runs the self-check, --defaults +prints the built-in config as JSON, for a settings UI) """ import base64 @@ -1481,4 +1482,9 @@ def test(): if __name__ == "__main__": - test() if sys.argv[1:] == ["--test"] else main() + if sys.argv[1:] == ["--test"]: + test() + elif sys.argv[1:] == ["--defaults"]: + print(json.dumps(DEFAULTS)) + else: + main() |
