diff options
Diffstat (limited to 'Argcfile.sh')
| -rwxr-xr-x | Argcfile.sh | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index c192232..c9fb34a 100755 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -250,7 +250,7 @@ chat-claude() { # @flag -S --no-stream # @arg text~ chat-cohere() { - _wrapper curl -i https://api.cohere.ai/v1/chat \ + _wrapper curl -i https://api.cohere.ai/v2/chat \ -X POST \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $COHERE_API_KEY" \ @@ -398,7 +398,7 @@ _build_body() { else shift case "$kind" in - openai) + openai|cohere) echo '{ "model": "'$argc_model'", "messages": [ @@ -410,13 +410,6 @@ _build_body() { "stream": '$stream' }' ;; - cohere) - echo '{ - "model": "'$argc_model'", - "message": "'"$*"'", - "stream": '$stream' -}' - ;; claude) echo '{ "model": "'$argc_model'", |
