summaryrefslogtreecommitdiffstats
path: root/Argcfile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Argcfile.sh')
-rwxr-xr-xArgcfile.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/Argcfile.sh b/Argcfile.sh
index 88615f9..3b29cda 100755
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -217,12 +217,7 @@ chat-cohere() {
-X POST \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $COHERE_API_KEY" \
---data '{
- "model": "'$argc_model'",
- "message": "'"$*"'",
- "stream": '$stream'
-}
-'
+-d "$(_build_body cohere "$@")"
}
# @cmd List cohere models
@@ -470,6 +465,13 @@ _build_body() {
"stream": '$stream'
}'
;;
+ cohere)
+ echo '{
+ "model": "'$argc_model'",
+ "message": "'"$*"'",
+ "stream": '$stream'
+}'
+ ;;
claude)
echo '{
"model": "'$argc_model'",