Skip to content

tmc/cbison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbison

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.

Prerequisites

Ensure that you have the following installed in your environment:

Usage

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.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages