Skip to content

Commit ae49db5

Browse files
committed
Make gpt-3.5 default, add support for gpt-4
1 parent f8b01ed commit ae49db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chatgpt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ while $running; do
274274
handle_error "$models_response"
275275
model_data=$(echo $models_response | jq -r -C '.data[] | select(.id=="'"${prompt#*model:}"'")')
276276
echo -e "${CHATGPT_CYAN_LABEL}Complete details for model: ${prompt#*model:}\n ${model_data}"
277-
elif [[ "$MODEL" == "gpt-3.5-turbo" ]]; then
277+
elif [[ "$MODEL" =~ ^gpt- ]]; then
278278
# escape quotation marks
279279
escaped_prompt=$(echo "$prompt" | sed 's/"/\\"/g')
280280
# escape new lines

0 commit comments

Comments
 (0)