Make gpt-3.5 default, add support for gpt-4

set-gpt3.5-turbo-as-default-model
acx 1 year ago
parent f8b01ed1de
commit ae49db56d1
  1. 2
      chatgpt.sh

@ -274,7 +274,7 @@ while $running; do
handle_error "$models_response"
model_data=$(echo $models_response | jq -r -C '.data[] | select(.id=="'"${prompt#*model:}"'")')
echo -e "${CHATGPT_CYAN_LABEL}Complete details for model: ${prompt#*model:}\n ${model_data}"
elif [[ "$MODEL" == "gpt-3.5-turbo" ]]; then
elif [[ "$MODEL" =~ ^gpt- ]]; then
# escape quotation marks
escaped_prompt=$(echo "$prompt" | sed 's/"/\\"/g')
# escape new lines

Loading…
Cancel
Save