A unified command-line interface for interacting with various Language Model providers.
pip install mashBefore using MASH, you need to set up your API keys and configurations:
- Create a
models/secrets.pyfile with your API keys:
OPENAI_API_KEY = "your-openai-key"
ANTHROPIC_API_KEY = "your-anthropic-key"- Configurations for each model are stored in their respective config files under
models/<provider>/configs.py
# Using GPT-4 (default)
mash ask "What is the meaning of life?"
# Using a specific model
mash ask "What is the meaning of life?" --model=claude
mash ask "What is the meaning of life?" --model=ollama
# Get help
mash --help- OpenAI GPT-4 (default)
- Anthropic Claude
- Local Ollama models
MIT License