Clai is a command line interface that uses Mistral's language model to generate responses based on user input. This README provides an overview of the project, its dependencies, and how to use it.
Clai is a simple command line interface that allows users to interact with Mistral's language model. It can take input either as a command line argument or through a pipe. The generated response is then printed to the console.
Clai relies on the following Go packages:
Make sure to install these dependencies before running the application.
To use Clai, follow these steps:
-
Set the required environment variables:
MISTRAL_API_KEY
: Your Mistral API key.MISTRAL_MODEL
(optional): The Mistral model to use. Defaults to "codestral-2405" if not specified.
-
Install:
go install github.com/rcharre/clai
-
Run the compiled binary with input:
- As a command line argument:
clai "Your input here"
- Through a pipe:
echo "Your input here" | clai
- Or both:
echo "Your input here" | clai "what is it?"
- As a command line argument:
MISTRAL_API_KEY
: Your Mistral API key. This is required for authentication.MISTRAL_MODEL
(optional): The Mistral model to use. Defaults to "codestral-2405" if not specified.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request. For major changes, please open an issue first to discuss what you would like to change.