Metadata-Version: 2.1
Name: llmlib-amq
Version: 0.0.2
Summary: A simple library for making requests to LLMs
Author-email: Armand McQueen <armandmcqueen@gmail.com>
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Dist: pydantic
Requires-Dist: openai
Requires-Dist: anthropic
Requires-Dist: rich
Requires-Dist: pytest>=8.3.2 ; extra == "dev"
Requires-Dist: black>=24.8.0 ; extra == "dev"
Requires-Dist: ruff>=0.6.2 ; extra == "dev"
Requires-Dist: mypy>=1.11.1 ; extra == "dev"
Requires-Dist: flit>=3.9.0 ; extra == "dev"
Project-URL: Documentation, https://github.com/armandmcqueen/llmlib#readme
Project-URL: Home, https://github.com/armandmcqueen/llmlib
Project-URL: Issues, https://github.com/armandmcqueen/llmlib/issues
Provides-Extra: dev

# LLMLib

LLMLib is a simple Python library for making requests to Language Learning Models (LLMs) such as OpenAI's GPT and Anthropic's Claude.

## Installation

You can install LLMLib using pip:

```
pip install llmlib-amq
```

## Usage

Here's a quick example of how to use LLMLib:

```python
from llmlib import LLMClient, LLMRequest, Provider, OpenAIModel, Message

client = LLMClient(
    openai_api_key="your-openai-api-key",
    anthropic_api_key="your-anthropic-api-key"
)

request = LLMRequest(
    provider=Provider.OPENAI,
    model=OpenAIModel.GPT_3_5_TURBO,
    messages=[
        Message(role="system", content="You are a helpful assistant."),
        Message(role="user", content="Tell me a joke.")
    ],
    stream=True
)

for chunk in client.generate(request):
    print(chunk, end="", flush=True)
```


## License

This project is licensed under the MIT License.
