diff options
| author | sigoden <sigoden@gmail.com> | 2025-02-08 08:46:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-08 08:46:34 +0800 |
| commit | eb527ea758b49adbc1e311638cc6999190ff1124 (patch) | |
| tree | e2396eb8c92adb7cd236bbe1b6c0fa4ec26f6d05 /src/repl | |
| parent | a491820ab5ff9bb58e62fd25d88f31ab53a81db9 (diff) | |
| download | aichat-eb527ea758b49adbc1e311638cc6999190ff1124.tar.gz | |
feat: enhance `.file` for loading resources from diverse sources (#1155)
Diffstat (limited to 'src/repl')
| -rw-r--r-- | src/repl/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs index 780023a..466c93e 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -579,14 +579,15 @@ pub async fn run_repl_command( ask(config, abort_signal.clone(), input, true).await?; } None => println!( - r#"Usage: .file <file|dir|url|%%|cmd>... [-- <text>...] + r#"Usage: .file <file|dir|url|cmd|loader:resource|%%>... [-- <text>...] .file /tmp/file.txt .file src/ Cargo.toml -- analyze .file https://example.com/file.txt -- summarize .file https://example.com/image.png -- recognize text -.file %% -- translate last reply to english -.file `git diff` -- Generate git commit message"# +.file `git diff` -- Generate git commit message +.file jina:https://example.com +.file %% -- translate last reply to english"# ), }, ".continue" => { |
