Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Aug 5, 2023
1 parent 33875dc commit 06d1cd4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions humanscript
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ $(cat "${humanscript_path}")

### Output script:"

# JSON encode strings
# Format JSON payload
stringified_system_prompt=$(echo "${system_prompt}"| jq -sRr @json)
stringified_user_prompt=$(echo "${user_prompt}"| jq -sRr @json)

# Format JSON payload
data=$(echo '{
"model": "'$HUMANSCRIPT_MODEL'",
"messages": [{"role": "system", "content": '$stringified_system_prompt'},{"role": "user", "content": '$stringified_user_prompt'}],
Expand Down

0 comments on commit 06d1cd4

Please sign in to comment.