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.
2 parents ea41590 + e44cf0c commit 9598414Copy full SHA for 9598414
chatgpt.sh
@@ -324,7 +324,7 @@ while $running; do
324
handle_error "$response"
325
response_data=$(echo "$response" | jq -r '.choices[].message.content')
326
327
- echo -e "${CHATGPT_CYAN_LABEL}${response_data}"
+ echo -e "${CHATGPT_CYAN_LABEL}${response_data}" | fold -s -w $COLUMNS
328
329
escaped_response_data=$(echo "$response_data" | sed 's/"/\\"/g')
330
add_assistant_response_to_chat_message "$chat_message" "$escaped_response_data"
0 commit comments