Skip to content

Commit

Permalink
i3: ChatGPT: Improve response refinement prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
veracioux committed Oct 9, 2023
1 parent aafe945 commit e44f524
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wm.org
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,12 @@ Menu of utilities that allow me to talk to my computer.
notify-send "ChatGPT" "Response copied to clipboard!"

if [ "$1" = "--speak" ]; then
echo "Refined response:"
refined_response="$(
{
echo "In the following text, remove all quotes and other symbols to make it suitable for low quality text-to-speech software:"
echo "In the following text, remove all quotes to make it suitable for low quality text-to-speech software:"
echo "$response"
} | minigpt chat
} | minigpt chat | tee /dev/stderr
)"
set +e
echo "$refined_response" \
Expand Down

0 comments on commit e44f524

Please sign in to comment.