diff options
| author | sigoden <sigoden@gmail.com> | 2024-10-09 08:28:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-09 08:28:34 +0800 |
| commit | a3e2c2a14718b4f23831cea9bce14ee4430dc90b (patch) | |
| tree | 957cee02cd54edf030e630fee7d4bda8f1449294 /src/main.rs | |
| parent | 4bc74f7e9006fc7f182c9dc6ea309ea83c5bb4f9 (diff) | |
| download | aichat-a3e2c2a14718b4f23831cea9bce14ee4430dc90b.tar.gz | |
refactor: throw error if using non-exist RAG in CMD mode (#917)
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 3c52f0d..299dc6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,7 @@ async fn main() -> Result<()> { } else if text.is_none() && cli.file.is_empty() { WorkingMode::Repl } else { - WorkingMode::Command + WorkingMode::Cmd }; setup_logger(working_mode.is_serve())?; let config = Arc::new(RwLock::new(Config::init(working_mode)?)); |
