https://github.com/cheffromspace/climate
A Command Line Interface for Collaborative Language Interaction with Large Language Models
https://github.com/cheffromspace/climate
Last synced: 9 months ago
JSON representation
A Command Line Interface for Collaborative Language Interaction with Large Language Models
- Host: GitHub
- URL: https://github.com/cheffromspace/climate
- Owner: Cheffromspace
- License: mit
- Created: 2024-06-12T14:12:28.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-20T23:05:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T08:07:37.754Z (about 1 year ago)
- Language: Python
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLImate
CLImate is a Command Line Interface for Collaborative Language Interaction with Large Language Models. It provides an interactive chat experience with AI models, allowing users to engage in conversations, manage conversation history, and customize the AI's persona.
## Features
- Interactive chat mode for real-time conversations with the AI
- Support for different AI models and temperature settings (Currently only Anthropic's Claude models are supported)
- Customizable AI personas for different conversation styles
- Conversation history management (save, load, reset)
- Importing and exporting conversation files
- Formatted output and syntax highlighting for improved readability

## Installation
1. Clone the repository:
```
git clone https://github.com/Cheffromspace/CLImate.git
```
2. Navigate to the project directory:
```
cd CLImate
```
3. Install the required dependencies:
```
pip install -r requirements.txt
```
4. Set up the Anthropic API key:
- Sign up for an Anthropic API key at [https://www.anthropic.com](https://www.anthropic.com)
- Set the `ANTHROPIC_API_KEY` environment variable with your API key:
```
export ANTHROPIC_API_KEY=your_api_key_here
```
## Usage
To start an interactive chat session:
```
python climate.py interactive
```
To send a single message to the AI:
```
python climate.py chat "Your message here"
```
To reset the conversation history:
```
python climate.py reset
```
To display the conversation history:
```
python climate.py history
```
To import a conversation file:
```
python climate.py import conversation_name
```
For more options and details, use the `--help` flag:
```
python climate.py --help
```
## Configuration
CLImate uses a configuration file (`.chat_config.json`) to store user preferences. The default configuration is:
```json
{
"model": "claude-3-opus-20240229",
"temperature": 0.7,
"persona": "default",
"conversations_directory": "~/conversations"
}
```
You can modify these settings by editing the `.chat_config.json` file in your home directory.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Make sure to follow the existing code style and include tests for any new features or bug fixes.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
## Acknowledgements
- [Anthropic](https://www.anthropic.com) for providing the AI models and API
- [Rich](https://github.com/Textualize/rich) for the formatting and styling of the CLI output