We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b01ed commit ae49db5Copy full SHA for ae49db5
chatgpt.sh
@@ -274,7 +274,7 @@ while $running; do
274
handle_error "$models_response"
275
model_data=$(echo $models_response | jq -r -C '.data[] | select(.id=="'"${prompt#*model:}"'")')
276
echo -e "${CHATGPT_CYAN_LABEL}Complete details for model: ${prompt#*model:}\n ${model_data}"
277
- elif [[ "$MODEL" == "gpt-3.5-turbo" ]]; then
+ elif [[ "$MODEL" =~ ^gpt- ]]; then
278
# escape quotation marks
279
escaped_prompt=$(echo "$prompt" | sed 's/"/\\"/g')
280
# escape new lines
0 commit comments