From 30dae5c12b81a6f92be138966d8930fa15612cb0 Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 17 Jan 2025 20:06:28 +0800 Subject: feat: support macro (#1087) --- scripts/completions/aichat.nu | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/completions/aichat.nu') 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 -- cgit v1.2.3