Skip to content

Commit 32538e5

Browse files
0xacxrxaviers
andauthored
rename variable for clarity
Co-authored-by: Rafael Xavier de Souza <rxaviers@gmail.com>
1 parent 4daa257 commit 32538e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatgpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ request_to_image() {
9797
request_to_chat() {
9898
message="$1"
9999
# escape quotation marks and newlines in the prompt
100-
escaped_prompt=$(echo "$SYSTEM_PROMPT" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
100+
escaped_system_prompt=$(echo "$SYSTEM_PROMPT" | sed 's/"/\\"/g' | sed ':a;N;$!ba;s/\n/\\n/g')
101101
response=$(curl https://api.openai.com/v1/chat/completions \
102102
-sS \
103103
-H 'Content-Type: application/json' \

0 commit comments

Comments
 (0)