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

This commit is contained in:
acx 2023-03-15 09:51:47 +02:00
parent f8b01ed1de
commit ae49db56d1

View File

@ -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