ACACE LLM Adapter
A Language Model adapter module for the Adaptive Context-Aware Content Engine (ACACE).
Features
- OpenAI API integration
- Anthropic API integration
- Unified interface for multiple LLM providers
- Error handling and retries
Installation
pip install acace_llm_adapter
Usage
from acace_llm_adapter import LLMAdapter
# Initialize with your API keys
adapter = LLMAdapter(
openai_api_key="your-openai-key",
anthropic_api_key="your-anthropic-key"
)
# Generate content using OpenAI
response = adapter.generate(
"Write a short story about a robot learning to paint.",
provider="openai",
model="gpt-4"
)
# Generate content using Anthropic
response = adapter.generate(
"Write a short story about a robot learning to paint.",
provider="anthropic",
model="claude-3-opus-20240229"
)
License
MIT License
Metadata
Release files for acace_llm_adapter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| acace_llm_adapter-0.1.0.tar.gz | 1.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acace_llm_adapter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.7 kB
Release files / acace_llm_adapter-0.1.0.tar.gz
| Download URL | acace_llm_adapter-0.1.0.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb3adb6acb9a861a5f5eb3d161a804b10d0b8edb421ca2413841a712de1cfb73
|
|
BLAKE2b-256 checksum How to use checksums |
f9912d31aab9ba83c587ccebf0c98bffb8f45ace69ffd72d49fd0fb915579ca3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.9.6 Darwin/24.3.0
|
Release files / acace_llm_adapter-0.1.0-py3-none-any.whl
| Download URL | acace_llm_adapter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77b266613ef71c7574dbe6f3c86652201406259dd9aa9e6b1f0cec01c31a518e
|
|
BLAKE2b-256 checksum How to use checksums |
a649d69e7a03892158e091323f5d4d49f2376e79d955c55fee271ad7027c78e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.9.6 Darwin/24.3.0
|