Closed tekemperor closed 1 year ago
Well that was fast. Since you added the "BARD_QUICK" variable check, I was able to make this bash function that does exactly what I want.
# USAGE1: bard QUESTION
# USAGE2: echo "QUESTION" | bard
bard () {
export BARD_QUICK=true
export BARD_SESSION=<REDACTED>.
python3 -m Bard "${@:-$(</dev/stdin)}" | tail -n+7
}
First, I just want to thank you for making this. Being able to talk to Bard in the terminal is a great productivity booster for me.
I have aliased the launch command
python3 -m Bard --session SESSION
tobard
. I would like to be able to type one of the following to get the response onstdout
instead of starting a chat session.bard "What is the orbital period of Neptune?"
echo "What is the orbital period of Neptune?" | bard -
bard -f ./long-question.txt | ./long-answer.txt
cat ./long-question.txt | bard - | ./long-answer.txt
Is there a way to do this?