Metadata-Version: 2.1
Name: llmeasy
Version: 0.1.5
Summary: Easy to use LLM interface
License: Apache-2.0
Author: Kevin Wong
Author-email: kevinchwong@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: aiohttp (>=3.9.3,<4.0.0)
Requires-Dist: anthropic (>=0.18.1,<0.19.0)
Requires-Dist: google-generativeai (>=0.3.2,<0.4.0)
Requires-Dist: mistralai (>=0.0.12,<0.0.13)
Requires-Dist: openai (>=1.12.0,<2.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: typing-extensions (>=4.9.0,<5.0.0)
Description-Content-Type: text/markdown

# AI Chat Framework

A flexible framework for integrating multiple AI chat providers (OpenAI, Claude, Gemini, Mistral, Grok).

## Installation

```bash
pip install llmeasy
```

## Setup

1. Copy `.env.example` to `.env`
2. Add your API keys to `.env`
3. Install dependencies: `poetry install`

## Environment Variables

### API Keys
- `ANTHROPIC_API_KEY`
- `OPENAI_API_KEY` 
- `GOOGLE_API_KEY`
- `MISTRAL_API_KEY`
- `GROK_API_KEY`

### Models
- `CLAUDE_MODEL` (default: claude-3-sonnet-20240229)
- `OPENAI_MODEL` (default: gpt-4-turbo-preview)
- `GEMINI_MODEL` (default: gemini-pro)
- `MISTRAL_MODEL` (default: mistral-large-latest)
- `GROK_MODEL` (default: grok-beta)

### Config
- `MAX_TOKENS` (default: 1000)
- `TEMPERATURE` (default: 0.7)

## Examples

Run all examples:
```bash
python examples/run_all_examples.py
```

Available examples in `examples/`:
- Basic usage
- Provider-specific implementations
- Advanced patterns
- Custom templates
- Provider comparisons
- Streaming
- Provider chaining

## Features

- Multi-provider support
- Async/await
- Streaming responses
- Custom templates
- Provider chaining
- Error handling
- Type hints

## License

Apache License 2.0
