diff options
| author | sigoden <sigoden@gmail.com> | 2024-11-13 06:58:13 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-13 06:58:13 +0800 |
| commit | 36e884c4b58e2d81fc44b9f3201543632cde33fa (patch) | |
| tree | 87cc3efd8a8df6c81e09a021da06349458fd3c85 /scripts | |
| parent | 522422d9d81d2ea0d2138512aca1adee2554ff11 (diff) | |
| download | aichat-36e884c4b58e2d81fc44b9f3201543632cde33fa.tar.gz | |
refactor: no side effect `--save-session` (#987)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/completions/aichat.fish | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.nu | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.ps1 | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.zsh | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish index f5b2576..df902b3 100644 --- a/scripts/completions/aichat.fish +++ b/scripts/completions/aichat.fish @@ -3,7 +3,7 @@ complete -c aichat -l prompt -d 'Use the system prompt' complete -c aichat -s r -l role -x -a "(aichat --list-roles)" -d 'Select a role' -r complete -c aichat -s s -l session -x -a"(aichat --list-sessions)" -d 'Start or join a session' -r complete -c aichat -l empty-session -d 'Ensure the session is empty' -complete -c aichat -l save-session -d 'Force the session to be saved' +complete -c aichat -l save-session -d 'Ensure the new conversation is saved to the session' complete -c aichat -s a -l agent -x -a"(aichat --list-agents)" -d 'Start a agent' -r complete -c aichat -s R -l rag -x -a"(aichat --list-rags)" -d 'Start a RAG' -r complete -c aichat -l serve -d 'Serve the LLM API and WebAPP' diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu index 22b3d31..382ee2d 100644 --- a/scripts/completions/aichat.nu +++ b/scripts/completions/aichat.nu @@ -41,7 +41,7 @@ module completions { --role(-r): string@"nu-complete aichat role" # Select a role --session(-s): string@"nu-complete aichat session" # Start or join a session --empty-session # Ensure the session is empty - --save-session # Force the session to be saved + --save-session # Ensure the new conversation is saved to the session --agent(-a): string@"nu-complete aichat agent" # Start a agent --rag(-R): string@"nu-complete aichat rag" # Start a RAG --serve # Serve the LLM API and WebAPP diff --git a/scripts/completions/aichat.ps1 b/scripts/completions/aichat.ps1 index 025427e..e9a6259 100644 --- a/scripts/completions/aichat.ps1 +++ b/scripts/completions/aichat.ps1 @@ -28,7 +28,7 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock { [CompletionResult]::new('-s', '-s', [CompletionResultType]::ParameterName, 'Start or join a session') [CompletionResult]::new('--session', '--session', [CompletionResultType]::ParameterName, 'Start or join a session') [CompletionResult]::new('--empty-session', '--empty-session', [CompletionResultType]::ParameterName, 'Ensure the session is empty') - [CompletionResult]::new('--save-session', '--save-session', [CompletionResultType]::ParameterName, 'Force the session to be saved') + [CompletionResult]::new('--save-session', '--save-session', [CompletionResultType]::ParameterName, 'Ensure the new conversation is saved to the session') [CompletionResult]::new('-a', '-a', [CompletionResultType]::ParameterName, 'Start a agent') [CompletionResult]::new('--agent', '--agent', [CompletionResultType]::ParameterName, 'Start a agent') [CompletionResult]::new('-R', '-R', [CompletionResultType]::ParameterName, 'Start a RAG') diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh index c13cb70..a8b1d0c 100644 --- a/scripts/completions/aichat.zsh +++ b/scripts/completions/aichat.zsh @@ -23,7 +23,7 @@ _aichat() { '-s[Start or join a session]:SESSION:->sessions' \ '--session[Start or join a session]:SESSION:->sessions' \ '--empty-session[Ensure the session is empty]' \ -'--save-session[Force the session to be saved]' \ +'--save-session[Ensure the new conversation is saved to the session]' \ '-a[Start a agent]:AGENT:->agents' \ '--agent[Start a agent]:AGENT:->agents' \ '-R[Start a RAG]:RAG:->rags' \ |
