Skip to content

Commit 3236de2

Browse files
committed
Rename to multiline prompt
1 parent 0a1ca89 commit 3236de2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chatgpt.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ while [[ "$#" -gt 0 ]]; do
267267
shift
268268
shift
269269
;;
270-
-b | --big-prompt)
271-
BIG_PROMPT=true
270+
--multi-line-prompt)
271+
MULTI_LINE_PROMPT=true
272272
shift
273273
;;
274274
-c | --chat-context)
@@ -292,10 +292,10 @@ MAX_TOKENS=${MAX_TOKENS:-1024}
292292
MODEL=${MODEL:-gpt-3.5-turbo}
293293
SIZE=${SIZE:-512x512}
294294
CONTEXT=${CONTEXT:-false}
295-
BIG_PROMPT=${BIG_PROMPT:-false}
295+
MULTI_LINE_PROMPT=${MULTI_LINE_PROMPT:-false}
296296

297297
# create our temp file for multi-line input
298-
if [ $BIG_PROMPT = true ]; then
298+
if [ $MULTI_LINE_PROMPT = true ]; then
299299
USER_INPUT=$(mktemp)
300300
trap 'rm -f ${USER_INPUT}' EXIT
301301
fi
@@ -323,7 +323,7 @@ fi
323323
while $running; do
324324

325325
if [ -z "$pipe_mode_prompt" ]; then
326-
if [ $BIG_PROMPT = true ]; then
326+
if [ $MULTI_LINE_PROMPT = true ]; then
327327
echo -e "\nEnter a prompt: (Press Enter then Ctrl-D to send)"
328328
cat >"${USER_INPUT}"
329329
prompt=$(sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g' "${USER_INPUT}")

0 commit comments

Comments
 (0)