blob: c09626b797d5e06d18f5503c73c664446ac02920 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
module completions {
def "nu-complete aichat completions" [] {
[ "bash" "zsh" "fish" "powershell" "nushell" ]
}
def "nu-complete aichat model" [] {
^aichat --list-models |
| lines
| parse "{value}"
}
def "nu-complete aichat role" [] {
^aichat --list-roles |
| lines
| parse "{value}"
}
def "nu-complete aichat session" [] {
^aichat --list-sessions |
| lines
| 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
--prompt # Use the system prompt
--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
--file(-f): string # Include files with the message
--no-highlight(-H) # Turn off syntax highlighting
--no-stream(-S) # Turns off stream mode
--wrap(-w): string # Control text wrapping (no, auto, <max-width>)
--light-theme # Use light theme
--dry-run # Display the message without sending it
--info # Display information
--list-models # List all available chat models
--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
]
}
export use completions *
|