diff options
| author | sigoden <sigoden@gmail.com> | 2025-01-22 20:51:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 20:51:10 +0800 |
| commit | e0417e8d5bebe25476aaafa22a9ee23d9bd61457 (patch) | |
| tree | 8edcd3aa9bcd1b012a3a429ad6240e6186caef36 /scripts | |
| parent | df4440a2a049d26c61a540d3254cd885345fbd6c (diff) | |
| download | aichat-e0417e8d5bebe25476aaafa22a9ee23d9bd61457.tar.gz | |
feat: add `--sync-models` cli option (#1114)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/completions/aichat.bash | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.fish | 1 | ||||
| -rw-r--r-- | scripts/completions/aichat.nu | 2 | ||||
| -rw-r--r-- | scripts/completions/aichat.ps1 | 1 | ||||
| -rw-r--r-- | scripts/completions/aichat.zsh | 1 |
5 files changed, 5 insertions, 2 deletions
diff --git a/scripts/completions/aichat.bash b/scripts/completions/aichat.bash index 4708077..9ea4f9a 100644 --- a/scripts/completions/aichat.bash +++ b/scripts/completions/aichat.bash @@ -17,7 +17,7 @@ _aichat() { case "${cmd}" in aichat) - opts="-m -r -s -a -e -c -f -S -h -V --model --prompt --role --session --empty-session --save-session --agent --agent-variable --rag --rebuild-rag --macro --serve --execute --code --file --no-stream --dry-run --info --list-models --list-roles --list-sessions --list-agents --list-rags --list-macros --help --version" + opts="-m -r -s -a -e -c -f -S -h -V --model --prompt --role --session --empty-session --save-session --agent --agent-variable --rag --rebuild-rag --macro --serve --execute --code --file --no-stream --dry-run --info --sync-models --list-models --list-roles --list-sessions --list-agents --list-rags --list-macros --help --version" if [[ ${cur} == -* || ${cword} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 diff --git a/scripts/completions/aichat.fish b/scripts/completions/aichat.fish index 3618a5d..d3c336c 100644 --- a/scripts/completions/aichat.fish +++ b/scripts/completions/aichat.fish @@ -16,6 +16,7 @@ complete -c aichat -s f -l file -d 'Include files, directories, or URLs' -r -F complete -c aichat -s S -l no-stream -d 'Turn off stream mode' complete -c aichat -l dry-run -d 'Display the message without sending it' complete -c aichat -l info -d 'Display information' +complete -c aichat -l sync-models -d 'Sync models updates' complete -c aichat -l list-models -d 'List all available chat models' complete -c aichat -l list-roles -d 'List all roles' complete -c aichat -l list-sessions -d 'List all sessions' diff --git a/scripts/completions/aichat.nu b/scripts/completions/aichat.nu index bbea5e2..365f0cc 100644 --- a/scripts/completions/aichat.nu +++ b/scripts/completions/aichat.nu @@ -40,7 +40,6 @@ module completions { | 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 @@ -60,6 +59,7 @@ module completions { --no-stream(-S) # Turn off stream mode --dry-run # Display the message without sending it --info # Display information + --sync-models # Sync models updates --list-models # List all available chat models --list-roles # List all roles --list-sessions # List all sessions diff --git a/scripts/completions/aichat.ps1 b/scripts/completions/aichat.ps1 index dc4ef64..c8c3187 100644 --- a/scripts/completions/aichat.ps1 +++ b/scripts/completions/aichat.ps1 @@ -46,6 +46,7 @@ Register-ArgumentCompleter -Native -CommandName 'aichat' -ScriptBlock { [CompletionResult]::new('--no-stream', '--no-stream', [CompletionResultType]::ParameterName, 'Turn off stream mode') [CompletionResult]::new('--dry-run', '--dry-run', [CompletionResultType]::ParameterName, 'Display the message without sending it') [CompletionResult]::new('--info', '--info', [CompletionResultType]::ParameterName, 'Display information') + [CompletionResult]::new('--sync-models', '--sync-models', [CompletionResultType]::ParameterName, 'Sync models updates') [CompletionResult]::new('--list-models', '--list-models', [CompletionResultType]::ParameterName, 'List all available chat models') [CompletionResult]::new('--list-roles', '--list-roles', [CompletionResultType]::ParameterName, 'List all roles') [CompletionResult]::new('--list-sessions', '--list-sessions', [CompletionResultType]::ParameterName, 'List all sessions') diff --git a/scripts/completions/aichat.zsh b/scripts/completions/aichat.zsh index 15cbdce..1349081 100644 --- a/scripts/completions/aichat.zsh +++ b/scripts/completions/aichat.zsh @@ -41,6 +41,7 @@ _aichat() { '--no-stream[Turn off stream mode]' \ '--dry-run[Display the message without sending it]' \ '--info[Display information]' \ +'--sync-models[Sync models updates]' \ '--list-models[List all available chat models]' \ '--list-roles[List all roles]' \ '--list-sessions[List all sessions]' \ |
