diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-17 20:06:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-17 20:06:28 +0800 |
| commit | 30dae5c12b81a6f92be138966d8930fa15612cb0 (patch) | |
| tree | ecb641bedbe8798d6b477f1036d714b99f1a8081 /scripts/completions/aichat.nu | |
| parent | 50c60e8097f5148c30295a296063d0fc8391a5f4 (diff) | |
| download | aichat-30dae5c12b81a6f92be138966d8930fa15612cb0.tar.gz | |
feat: support macro (#1087)
Diffstat (limited to 'scripts/completions/aichat.nu')
| -rw-r--r-- | scripts/completions/aichat.nu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu index ca41518..bbea5e2 100644 --- a/scripts/completions/aichat.nu +++ b/scripts/completions/aichat.nu @@ -34,6 +34,12 @@ module completions { | parse "{value}" } + def "nu-complete aichat macro" [] { + ^aichat --list-macros | + | lines + | parse "{value}" + } + # All-in-one chat and copilot CLI that integrates 10+ AI platforms export extern aichat [ --model(-m): string@"nu-complete aichat model" # Select a LLM model @@ -46,6 +52,7 @@ module completions { --agent-variable # Set agent variables --rag: string@"nu-complete aichat rag" # Start a RAG --rebuild-rag # Rebuild the RAG to sync document changes + --macro: string@"nu-complete aichat macro" # Execute a macro --serve # Serve the LLM API and WebAPP --execute(-e) # Execute commands in natural language --code(-c) # Output code only @@ -58,6 +65,7 @@ module completions { --list-sessions # List all sessions --list-agents # List all agents --list-rags # List all RAGs + --list-macros # List all macros ...text: string # Input text --help(-h) # Print help --version(-V) # Print version |
