aboutsummaryrefslogtreecommitdiffstats
path: root/src/_chatblade
diff options
context:
space:
mode:
authorJohannes Bittner <johannes.bittner@gmail.com>2023-09-17 12:44:01 +0200
committerJohannes Bittner <johannes.bittner@gmail.com>2023-09-17 12:44:01 +0200
commitbc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63 (patch)
tree1e33dd1fd6b21bac77464bc5d751e1689cb3d869 /src/_chatblade
parentremove trailing spaces (diff)
parentApply suggestions from code review (diff)
downloadzsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar.gz
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar.bz2
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar.lz
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar.xz
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.tar.zst
zsh-completions-bc8cdc6b7983dcdf4038e4dee5d81d6e5cbd2c63.zip
Merge branch 'master' of github.com:johannes87/zsh-completions
Diffstat (limited to 'src/_chatblade')
-rw-r--r--src/_chatblade26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/_chatblade b/src/_chatblade
index 222f62d..4c0fd7b 100644
--- a/src/_chatblade
+++ b/src/_chatblade
@@ -17,23 +17,19 @@ _chatblade() {
local -a args
args+=(
- '(-h --help)'{-h,--help}'[show this help message and exit]'
- '--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]'
- '--temperature[temperature (openai setting)]'
- '(-c --chat-gpt)'{-c,--chat-gpt}'[chat GPT model 3.5/4 shorthand or full qualified model name, can also be set via e
- variable OPENAI_API_MODEL]'
- '(-i --interactive)'{-i,--interactive}'[start an interactive chat session. This will implicitly continue the
- conversation]'
+ '(- *)'{-h,--help}'[show this help message and exit]'
+ '--openai-api-key[the OpenAI API key can also be set as env variable OPENAI_API_KEY]:key'
+ '--temperature[temperature (openai setting)]:temperature'
+ '(-c --chat-gpt)'{-c,--chat-gpt}'[chat GPT model 3.5/4 shorthand or full qualified model name, can also be set via env variable OPENAI_API_MODEL]:chat GPT model:(3.5 4)'
+ '(-i --interactive)'{-i,--interactive}'[start an interactive chat session. This will implicitly continue the conversation]'
'(-s --stream)'{-s,--stream}'[Stream the incoming text to the terminal]'
'(-t --tokens)'{-t,--tokens}'[display what *would* be sent, how many tokens, and estimated costs]'
- '(-p --prompt-file)'{-p,--prompt-file}'[prompt name - will load the prompt with that name at ~/.config/chatblade/nam
- or a path to a file]:prompt file:_files'
+ '(-p --prompt-file)'{-p,--prompt-file}'[prompt name - will load the prompt with that name at ~/.config/chatblade/name or a path to a file]:prompt file:_files'
'(-e --extract)'{-e,--extract}'[extract content from response if possible (either json or code block)]'
'(-r --raw)'{-r,--raw}'[print session as pure text, dont pretty print or format]'
'(-n --no-format)'{-n,--no-format}'[do not add pretty print formatting to output]'
'(-o --only)'{-o,--only}'[Only display the response, omit query]'
- '--theme[Set the theme for syntax highlighting see https://pygments.org/styles/, can also be set with
- CHATBLADE_THEME]:theme:_values "theme" default emacs friendly manni monokai'
+ '--theme[Set the theme for syntax highlighting see https://pygments.org/styles/, can also be set with CHATBLADE_THEME]:theme:_values "theme" default emacs friendly manni monokai'
'(-l --last)'{-l,--last}'[alias for -S last, the default session if none is specified]'
'(-S --session)'{-S,--session}'[initiate or continue named session]:session:->sessions'
'--session-list[list sessions]'
@@ -55,3 +51,11 @@ _chatblade() {
}
_chatblade
+
+# Local Variables:
+# mode: Shell-Script
+# sh-indentation: 2
+# indent-tabs-mode: nil
+# sh-basic-offset: 2
+# End:
+# vim: ft=zsh sw=2 ts=2 et