cbison is a command line tool that interacts with Google's Generative AI to generate responses for given prompts using the chat-bison-001 model. The tool allows users to send a message to the AI model and receive a generated reply.
Ensure that you have the following installed in your environment:
First, clone the repository and navigate to the directory:
git clone https://github.com/tmc/cbison.git
cd cbison
Next, install the binary:
go install
Make sure you have a valid Palm API key: https://makersuite.google.com/app/apikey
export GOOGLE_GENERATIVE_AI_API_KEY=your-api-key
To use cbison, prepare your input as text file:
echo "Hello, how are you?" > input.txt
Then, run the command to generate a reply:
cat input.txt | cbison
Note: Ensure you use the cbison
command (with the dot and slash) to run the binary built in the earlier step. Replace cbison
with the binary filename (e.g. cbison.exe
on Windows) as needed.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.