From 27728baa4fc1b167953eb1d1efcf8f67ffcbb116 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sat, 5 Aug 2023 17:52:56 +0700 Subject: [PATCH] Code style --- humanscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/humanscript b/humanscript index b58906b..667f1d9 100755 --- a/humanscript +++ b/humanscript @@ -71,9 +71,9 @@ data=$(echo '{ # Send request and stream chunked responses back curl --silent --show-error "${HUMANSCRIPT_API}/v1/chat/completions" \ - -H "Content-Type: application/json" \ - -H "Authorization: Bearer $HUMANSCRIPT_API_KEY" \ - -d "${data}" | \ + --header "Content-Type: application/json" \ + --header "Authorization: Bearer ${HUMANSCRIPT_API_KEY}" \ + --data "${data}" | \ sed 's/^data: //' | # Strip chunk header sed '/^\[DONE\]/d' | # Strip end chunk tee >(jq --join-output --unbuffered '.error // ""' >&2 || cat) | # Log API errors to stderr (without breaking the pipe)