File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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}
292292MODEL=${MODEL:- gpt-3.5-turbo}
293293SIZE=${SIZE:- 512x512}
294294CONTEXT=${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
301301fi
323323while $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} " )
You can’t perform that action at this time.
0 commit comments