summaryrefslogtreecommitdiffstats
path: root/scripts/completions/aichat.nu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/completions/aichat.nu')
-rw-r--r--scripts/completions/aichat.nu20
1 files changed, 18 insertions, 2 deletions
diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu
index 89ebb35..ec4b083 100644
--- a/scripts/completions/aichat.nu
+++ b/scripts/completions/aichat.nu
@@ -22,6 +22,18 @@ module completions {
| parse "{value}"
}
+ def "nu-complete aichat bot" [] {
+ ^aichat --list-bots |
+ | lines
+ | parse "{value}"
+ }
+
+ def "nu-complete aichat rag" [] {
+ ^aichat --list-rags |
+ | 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
@@ -29,6 +41,8 @@ module completions {
--role(-r): string@"nu-complete aichat role" # Select a role
--session(-s): string@"nu-complete aichat role" # Start or join a session
--save-session # Forces the session to be saved
+ --bot(-b): string@"nu-complete aichat bot" # Start a bot
+ --rag: string@"nu-complete aichat rag" # Start a RAG
--serve # Serve the LLM API and WebAPP
--execute(-e) # Execute commands in natural language
--code(-c) # Output code only
@@ -40,8 +54,10 @@ module completions {
--dry-run # Display the message without sending it
--info # Display information
--list-models # List all available models
- --list-roles # List all available roles
- --list-sessions # List all available sessions
+ --list-roles # List all roles
+ --list-sessions # List all sessions
+ --list-bots # List all bots
+ --list-rags # List all RAGs
...text: string # Input text
--help(-h) # Print help
--version(-V) # Print version