File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,6 @@ while [[ "$#" -gt 0 ]]; do
194194 CONTEXT=true
195195 shift
196196 ;;
197- -cc | --chat-completion)
198- MODEL=" gpt-3.5-turbo"
199- CHAT_COMPLETION=true
200- shift
201- ;;
202197 * )
203198 echo " Unknown parameter: $1 "
204199 exit 1
@@ -209,10 +204,9 @@ done
209204# set defaults
210205TEMPERATURE=${TEMPERATURE:- 0.7}
211206MAX_TOKENS=${MAX_TOKENS:- 1024}
212- MODEL=${MODEL:- text-davinci-003 }
207+ MODEL=${MODEL:- gpt-3.5-turbo }
213208SIZE=${SIZE:- 512x512}
214209CONTEXT=${CONTEXT:- false}
215- CHAT_COMPLETION=${CHAT_COMPLETION:- false}
216210
217211# create history file
218212if [ ! -f ~ /.chatgpt_history ]; then
@@ -280,7 +274,7 @@ while $running; do
280274 handle_error " $models_response "
281275 model_data=$( echo $models_response | jq -r -C ' .data[] | select(.id=="' " ${prompt#* model: } " ' ")' )
282276 echo -e " ${CHATGPT_CYAN_LABEL} Complete details for model: ${prompt#* model: } \n ${model_data} "
283- elif [[ " $CHAT_COMPLETION " = true ]]; then
277+ elif [[ " $MODEL " =~ ^gpt- ]]; then
284278 # escape quotation marks
285279 escaped_prompt=$( echo " $prompt " | sed ' s/"/\\"/g' )
286280 # escape new lines
You can’t perform that action at this time.
0 commit comments